SecretsManagerSecretResourceDataProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const secretsManagerSecretResourceDataProperty: greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty = {
arn: 'arn',
// the properties below are optional
additionalStagingLabelsToDownload: ['additionalStagingLabelsToDownload'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass
secrets_manager_secret_resource_data_property = greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty(
arn="arn",
# the properties below are optional
additional_staging_labels_to_download=["additionalStagingLabelsToDownload"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
SecretsManagerSecretResourceDataProperty secretsManagerSecretResourceDataProperty = SecretsManagerSecretResourceDataProperty.builder()
.arn("arn")
// the properties below are optional
.additionalStagingLabelsToDownload(List.of("additionalStagingLabelsToDownload"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var secretsManagerSecretResourceDataProperty = new SecretsManagerSecretResourceDataProperty {
Arn = "arn",
// the properties below are optional
AdditionalStagingLabelsToDownload = new [] { "additionalStagingLabelsToDownload" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"),
},
}
Properties
additionalStagingLabelsToDownloadoptionalstring[]additional_staging_labels_to_downloadoptionaltyping.List[str]additionalStagingLabelsToDownloadoptionalList<String>AdditionalStagingLabelsToDownloadoptionalstring[]AdditionalStagingLabelsToDownloadoptional*[]*string #The staging labels whose values you want to make available on the core, in addition to `AWSCURRENT` .
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.