< Back
Invoke-AwsEasyTag
Post
NAME Invoke-AwsEasyTag
SYNOPSIS
Tag all resoruces or remove/update a tag on all resources.
SYNTAX
Invoke-AwsEasyTag [[-region] <String>] [[-tagkey] <String>] [[-tagvalue] <String>] [[-newtagvalue] <String>]
[-addtag] [-updatetag] [-removetag] [-showallresources] [-showmissing] [-showtagged] [[-arn] <String>]
[<CommonParameters>]
DESCRIPTION
Tagger for all resources no filter so be carefull.
http://docs.aws.amazon.com/powershell/l ... dlets.html
&tocid=AWS_Resource_Groups_Tagging_API_cmdlets
PARAMETERS
-region <String>
Required? false
Position? 1
Default value (Get-EC2InstanceMetadata -Category Region | Select-Object -ExpandProperty
SystemName)
Accept pipeline input? false
Accept wildcard characters? false
-tagkey <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-tagvalue <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-newtagvalue <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-addtag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-updatetag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-removetag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showallresources [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showmissing [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showtagged [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-arn <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-AwsEasyTag -tagkey mytag -region $region -tagvalue myvalue -addtag
Invoke-AwsEasyTag -tagkey mytag -region $region -removetag
Invoke-AwsEasyTag -tagkey mytag -region $region -tagvalue myvalue -updatetag -newtagvalue mynewvalue
Invoke-AwsEasyTag $arn ("$arn1",""$arn2") -tagkey mytag -region $region -tagvalue myvalue -addtag
RELATED LINKS
SYNOPSIS
Tag all resoruces or remove/update a tag on all resources.
SYNTAX
Invoke-AwsEasyTag [[-region] <String>] [[-tagkey] <String>] [[-tagvalue] <String>] [[-newtagvalue] <String>]
[-addtag] [-updatetag] [-removetag] [-showallresources] [-showmissing] [-showtagged] [[-arn] <String>]
[<CommonParameters>]
DESCRIPTION
Tagger for all resources no filter so be carefull.
http://docs.aws.amazon.com/powershell/l ... dlets.html
&tocid=AWS_Resource_Groups_Tagging_API_cmdlets
PARAMETERS
-region <String>
Required? false
Position? 1
Default value (Get-EC2InstanceMetadata -Category Region | Select-Object -ExpandProperty
SystemName)
Accept pipeline input? false
Accept wildcard characters? false
-tagkey <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-tagvalue <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-newtagvalue <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-addtag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-updatetag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-removetag [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showallresources [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showmissing [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-showtagged [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-arn <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-AwsEasyTag -tagkey mytag -region $region -tagvalue myvalue -addtag
Invoke-AwsEasyTag -tagkey mytag -region $region -removetag
Invoke-AwsEasyTag -tagkey mytag -region $region -tagvalue myvalue -updatetag -newtagvalue mynewvalue
Invoke-AwsEasyTag $arn ("$arn1",""$arn2") -tagkey mytag -region $region -tagvalue myvalue -addtag
RELATED LINKS