package awsgreengrass // 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](https://docs.aws.amazon.com/greengrass/latest/developerguide/secrets.html) in the *Developer Guide* . // // In an AWS CloudFormation template, `SecretsManagerSecretResourceData` can be used in the [`ResourceDataContainer`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourcedatacontainer.html) property type. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // secretsManagerSecretResourceDataProperty := &SecretsManagerSecretResourceDataProperty{ // Arn: jsii.String("arn"), // // // the properties below are optional // AdditionalStagingLabelsToDownload: []*string{ // jsii.String("additionalStagingLabelsToDownload"), // }, // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-secretsmanagersecretresourcedata.html // type CfnResourceDefinition_SecretsManagerSecretResourceDataProperty struct { // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-secretsmanagersecretresourcedata.html#cfn-greengrass-resourcedefinition-secretsmanagersecretresourcedata-arn // Arn *string `field:"required" json:"arn" yaml:"arn"` // The staging labels whose values you want to make available on the core, in addition to `AWSCURRENT` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-secretsmanagersecretresourcedata.html#cfn-greengrass-resourcedefinition-secretsmanagersecretresourcedata-additionalstaginglabelstodownload // AdditionalStagingLabelsToDownload *[]*string `field:"optional" json:"additionalStagingLabelsToDownload" yaml:"additionalStagingLabelsToDownload"` }