# SecretsManagerSecretResourceDataProperty

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/v1/developerguide/secrets.html) in the *Developer Guide* .

In an CloudFormation template, `SecretsManagerSecretResourceData` can be used in the [`ResourceDataContainer`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html) property type.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `additionalStagingLabelsToDownload`: string[] — The staging labels whose values you want to make available on the core, in addition to `AWSCURRENT` .

- `arn`: string (required) — 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.
