Class: AWSCDK::EC2::CfnInstance::SSMAssociationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnInstance::SSMAssociationProperty
- Defined in:
- ec2/cfn_instance.rb
Overview
Specifies the SSM document and parameter values in AWS Systems Manager to associate with an instance.
SsmAssociations is a property of the AWS::EC2::Instance resource.
Instance Attribute Summary collapse
-
#association_parameters ⇒ AWSCDK::IResolvable, ...
readonly
The input parameter values to use with the associated SSM document.
-
#document_name ⇒ String
readonly
The name of an SSM document to associate with the instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(document_name:, association_parameters: nil) ⇒ SSMAssociationProperty
constructor
A new instance of SSMAssociationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(document_name:, association_parameters: nil) ⇒ SSMAssociationProperty
Returns a new instance of SSMAssociationProperty.
2299 2300 2301 2302 2303 2304 |
# File 'ec2/cfn_instance.rb', line 2299 def initialize(document_name:, association_parameters: nil) @document_name = document_name Jsii::Type.check_type(@document_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "documentName") @association_parameters = association_parameters Jsii::Type.check_type(@association_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbkluc3RhbmNlLkFzc29jaWF0aW9uUGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "associationParameters") unless @association_parameters.nil? end |
Instance Attribute Details
#association_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
The input parameter values to use with the associated SSM document.
2315 2316 2317 |
# File 'ec2/cfn_instance.rb', line 2315 def association_parameters @association_parameters end |
#document_name ⇒ String (readonly)
The name of an SSM document to associate with the instance.
2310 2311 2312 |
# File 'ec2/cfn_instance.rb', line 2310 def document_name @document_name end |
Class Method Details
.jsii_properties ⇒ Object
2317 2318 2319 2320 2321 2322 |
# File 'ec2/cfn_instance.rb', line 2317 def self.jsii_properties { :document_name => "documentName", :association_parameters => "associationParameters", } end |
Instance Method Details
#to_jsii ⇒ Object
2324 2325 2326 2327 2328 2329 2330 2331 |
# File 'ec2/cfn_instance.rb', line 2324 def to_jsii result = {} result.merge!({ "documentName" => @document_name, "associationParameters" => @association_parameters, }) result.compact end |