@@ -28,6 +28,18 @@ const (
2828)
2929
3030var (
31+ // Kinesis audit log sink flags
32+ roleNameFlag = & cli.StringFlag {
33+ Name : roleNameFlagName ,
34+ Usage : "The role name to use to write to the sink" ,
35+ Aliases : []string {"rn" },
36+ Required : true ,
37+ }
38+ roleNameFlagOptional = & cli.StringFlag {
39+ Name : roleNameFlagName ,
40+ Usage : "The role name to use to write to the sink" ,
41+ Aliases : []string {"rn" },
42+ }
3143 destinationUriFlag = & cli.StringFlag {
3244 Name : destinationUriFlagName ,
3345 Usage : "The destination URI of the audit log sink" ,
3951 Usage : "The destination URI of the audit log sink" ,
4052 Aliases : []string {"du" },
4153 }
54+ sinkRegionFlagRequired = & cli.StringFlag {
55+ Name : sinkRegionFlagName ,
56+ Usage : "The region to use for the request" ,
57+ Aliases : []string {"re" },
58+ Required : true ,
59+ }
60+ sinkRegionFlagOptional = & cli.StringFlag {
61+ Name : sinkRegionFlagName ,
62+ Usage : "The region to use for the request" ,
63+ Aliases : []string {"re" },
64+ }
65+
66+ // PubSub audit log sink flags
4267 sinkServiceAccountEmailFlag = & cli.StringFlag {
4368 Name : sinkServiceAccountEmailFlagName ,
4469 Usage : "The service account email to impersonate to write to the sink" ,
5075 Usage : "The service account email to impersonate to write to the sink" ,
5176 Aliases : []string {"sae" },
5277 }
53- roleNameFlag = & cli.StringFlag {
54- Name : roleNameFlagName ,
55- Usage : "The role name to use to write to the sink" ,
56- Aliases : []string {"rn" },
57- Required : true ,
58- }
59- roleNameFlagOptional = & cli.StringFlag {
60- Name : roleNameFlagName ,
61- Usage : "The role name to use to write to the sink" ,
62- Aliases : []string {"rn" },
63- }
6478 topicNameFlag = & cli.StringFlag {
6579 Name : topicNameFlagName ,
6680 Usage : "The topic name to write to the sink" ,
7286 Usage : "The topic name to write to the sink" ,
7387 Aliases : []string {"tn" },
7488 }
75- sinkRegionFlagRequired = & cli.StringFlag {
76- Name : sinkRegionFlagName ,
77- Usage : "The region to use for the request" ,
78- Aliases : []string {"re" },
79- Required : true ,
80- }
81- sinkRegionFlagOptional = & cli.StringFlag {
82- Name : sinkRegionFlagName ,
83- Usage : "The region to use for the request" ,
84- Aliases : []string {"re" },
85- }
8689)
8790
8891type AccountClient struct {
@@ -867,8 +870,6 @@ func NewAccountCommand(getAccountClientFn GetAccountClientFn) (CommandOut, error
867870 kinesisAuditLogCommands ,
868871 pubsubAuditLogCommands ,
869872 }
870- if IsFeatureEnabled (AuditLogSinkNewAPIFeatureFlag ) {
871- commandOut .Command .Subcommands = append (commandOut .Command .Subcommands , auditLogCommands )
872- }
873+ commandOut .Command .Subcommands = append (commandOut .Command .Subcommands , auditLogCommands )
873874 return commandOut , nil
874875}
0 commit comments