Class: AWSCDK::EC2::CfnInstance::SSMAssociationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document_name:, association_parameters: nil) ⇒ SSMAssociationProperty

Returns a new instance of SSMAssociationProperty.

Parameters:



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_parametersAWSCDK::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_nameString (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_propertiesObject



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_jsiiObject



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