Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::SecretsManagerSecretResourceDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_resource_definition_version.rb

Overview

Settings for a secret resource, which references a secret from AWS Secrets Manager .

AWS IoT Greengrass stores a local, encrypted copy of the secret on the Greengrass core, where it can be securely accessed by connectors and Lambda functions. For more information, see Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .

In an CloudFormation template, SecretsManagerSecretResourceData can be used in the ResourceDataContainer property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn:, additional_staging_labels_to_download: nil) ⇒ SecretsManagerSecretResourceDataProperty

Returns a new instance of SecretsManagerSecretResourceDataProperty.

Parameters:

  • arn (String)

    The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.

  • additional_staging_labels_to_download (Array<String>, nil) (defaults to: nil)

    The staging labels whose values you want to make available on the core, in addition to AWSCURRENT .



996
997
998
999
1000
1001
# File 'greengrass/cfn_resource_definition_version.rb', line 996

def initialize(arn:, additional_staging_labels_to_download: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn")
  @additional_staging_labels_to_download = additional_staging_labels_to_download
  Jsii::Type.check_type(@additional_staging_labels_to_download, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "additionalStagingLabelsToDownload") unless @additional_staging_labels_to_download.nil?
end

Instance Attribute Details

#additional_staging_labels_to_downloadArray<String>? (readonly)

The staging labels whose values you want to make available on the core, in addition to AWSCURRENT .



1014
1015
1016
# File 'greengrass/cfn_resource_definition_version.rb', line 1014

def additional_staging_labels_to_download
  @additional_staging_labels_to_download
end

#arnString (readonly)

The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.

The value of the secret's latest version (represented by the AWSCURRENT staging label) is included by default.



1009
1010
1011
# File 'greengrass/cfn_resource_definition_version.rb', line 1009

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



1016
1017
1018
1019
1020
1021
# File 'greengrass/cfn_resource_definition_version.rb', line 1016

def self.jsii_properties
  {
    :arn => "arn",
    :additional_staging_labels_to_download => "additionalStagingLabelsToDownload",
  }
end

Instance Method Details

#to_jsiiObject



1023
1024
1025
1026
1027
1028
1029
1030
# File 'greengrass/cfn_resource_definition_version.rb', line 1023

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "additionalStagingLabelsToDownload" => @additional_staging_labels_to_download,
  })
  result.compact
end