Class CfnTagSyncTask
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.resourcegroups.CfnTagSyncTask
- All Implemented Interfaces:
IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:19.566Z")
@Stability(Stable)
public class CfnTagSyncTask
extends CfnResource
implements IInspectable
Onboards and syncs resources tagged with a specific tag key-value pair to an application.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:StartTagSyncTaskresource-groups:CreateGroupiam:PassRolefor the role you provide to create a tag-sync task
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resourcegroups.*;
CfnTagSyncTask cfnTagSyncTask = CfnTagSyncTask.Builder.create(this, "MyCfnTagSyncTask")
.group("group")
.roleArn("roleArn")
.tagKey("tagKey")
.tagValue("tagValue")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTagSyncTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTagSyncTask(software.amazon.jsii.JsiiObjectRef objRef) CfnTagSyncTask(software.constructs.Construct scope, String id, CfnTagSyncTaskProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon resource name (ARN) of the application group.The name of the application group.The status of the tag-sync task.The Amazon resource name (ARN) of the tag-sync task.getGroup()The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task.The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.The tag key.The tag value.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task.voidsetRoleArn(String value) The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.voidThe tag key.voidsetTagValue(String value) The tag value.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTagSyncTask
protected CfnTagSyncTask(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTagSyncTask
protected CfnTagSyncTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTagSyncTask
@Stability(Stable) public CfnTagSyncTask(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTagSyncTaskProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrGroupArn
The Amazon resource name (ARN) of the application group. -
getAttrGroupName
The name of the application group. -
getAttrStatus
The status of the tag-sync task.Valid values include:
ACTIVE- The tag-sync task is actively managing resources in the application by adding or removing theawsApplicationtag from resources when they are tagged or untagged with the specified tag key-value pair.ERROR- The tag-sync task is not actively managing resources in the application. Review theErrorMessagefor more information about resolving the error.
-
getAttrTaskArn
The Amazon resource name (ARN) of the tag-sync task. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getGroup
The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task. -
setGroup
The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task. -
getRoleArn
The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf. -
setRoleArn
The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf. -
getTagKey
The tag key. -
setTagKey
The tag key. -
getTagValue
The tag value. -
setTagValue
The tag value.
-