Class: AWSCDK::ResourceGroups::CfnTagSyncTaskProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResourceGroups::CfnTagSyncTaskProps
- Defined in:
- resource_groups/cfn_tag_sync_task_props.rb
Overview
Properties for defining a CfnTagSyncTask.
Instance Attribute Summary collapse
-
#group ⇒ String
readonly
The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task.
-
#role_arn ⇒ String
readonly
The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.
-
#tag_key ⇒ String
readonly
The tag key.
-
#tag_value ⇒ String
readonly
The tag value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group:, role_arn:, tag_key:, tag_value:) ⇒ CfnTagSyncTaskProps
constructor
A new instance of CfnTagSyncTaskProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group:, role_arn:, tag_key:, tag_value:) ⇒ CfnTagSyncTaskProps
Returns a new instance of CfnTagSyncTaskProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 13 def initialize(group:, role_arn:, tag_key:, tag_value:) @group = group Jsii::Type.check_type(@group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "group") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @tag_key = tag_key Jsii::Type.check_type(@tag_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tagKey") @tag_value = tag_value Jsii::Type.check_type(@tag_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tagValue") end |
Instance Attribute Details
#group ⇒ String (readonly)
The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task.
28 29 30 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 28 def group @group end |
#role_arn ⇒ String (readonly)
The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.
33 34 35 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 33 def role_arn @role_arn end |
#tag_key ⇒ String (readonly)
The tag key.
38 39 40 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 38 def tag_key @tag_key end |
#tag_value ⇒ String (readonly)
The tag value.
43 44 45 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 43 def tag_value @tag_value end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 45 def self.jsii_properties { :group => "group", :role_arn => "roleArn", :tag_key => "tagKey", :tag_value => "tagValue", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'resource_groups/cfn_tag_sync_task_props.rb', line 54 def to_jsii result = {} result.merge!({ "group" => @group, "roleArn" => @role_arn, "tagKey" => @tag_key, "tagValue" => @tag_value, }) result.compact end |