aws/secrets-manager
Declares the AWS Secrets Manager API operations a workload needs to call.
Documentation
Use this extension for applications and platform tools that call the AWS Secrets Manager API directly. Each Condition declares the operations its workload needs.
| Interface | Use it for |
|---|---|
secret |
Operations on one existing secret, such as GetSecretValue, RotateSecret, or DeleteSecret. Use the Condition name as the logical secret reference the platform resolves. |
service |
CreateSecret, GetRandomPassword, ListSecrets, and ValidateResourcePolicy. These calls can run without binding the Condition to an existing secret. |
batch |
BatchGetSecretValue. The workload selects secrets at runtime using identifiers or filters. |
Use the exact AWS API operation names. The scope describes the shape of the call. The platform still applies its authorization rules to the actual resources. In particular, batch retrieval needs access to each selected secret, and cross-account replication calls involve a primary secret and a replica. Retrieval can also need KMS access for a customer-managed key. See the AWS service authorization reference.
The workload supplies AWS request parameters when it makes the call.
For example, a provisioning tool supplies the new secret's Name when
calling CreateSecret. The Condition declares that the tool needs this
operation. It does not request that the platform create the secret in advance.
Keep request data, secret values, credentials, and policy documents out of
profiles. For workloads that consume an environment variable or mounted file,
the platform can choose how to supply it.
Read one existing secret
Declare the read and metadata operations for the logical secret reference:
name: database-credentials
kind: aws.secrets_manager
interface:
type: secret
operations:
- name: GetSecretValue
- name: DescribeSecret
The resulting profile declares the extension and carries the same Condition:
apiVersion: runtimeconditions.io/v1alpha1
kind: RuntimeConditionsProfile
metadata:
name: secrets-reader
workload:
uri: https://example.com/secrets-reader
extensions:
- https://runtimeconditions.io/extensions/aws/secrets-manager/0.1.0/runtimeconditions.extension.yaml:0.1.0
conditions:
- name: database-credentials
kind: aws.secrets_manager
interface:
type: secret
operations:
- name: GetSecretValue
- name: DescribeSecret
Provision a secret through the API
A platform tool such as Terraform or OpenTofu can declare that it needs to call
CreateSecret. Include other operations when the tool's actual configuration
requires them.
kind: aws.secrets_manager
interface:
type: service
operations:
- name: CreateSecret
The resulting profile targets the service and can be fulfilled without an existing secret:
apiVersion: runtimeconditions.io/v1alpha1
kind: RuntimeConditionsProfile
metadata:
name: secrets-provisioner
workload:
uri: https://example.com/secrets-provisioner
extensions:
- https://runtimeconditions.io/extensions/aws/secrets-manager/0.1.0/runtimeconditions.extension.yaml:0.1.0
conditions:
- kind: aws.secrets_manager
interface:
type: service
operations:
- name: CreateSecret
API source
The release covers all 26 operations in the pinned
AWS Smithy model
for API version 2017-10-17.
Most operations take a required SecretId and use secret.
ValidateResourcePolicy belongs to service because its SecretId is
optional. BatchGetSecretValue can use an explicit list of IDs or filters,
which is why it has a separate interface. For cross-account replica association
and disassociation, SecretId identifies the primary and
CrossAccountReplicaARN identifies the second resource.
Packages
Install the package for your language to declare this extension's Conditions from your code.
Go
This package version is generated but not published to its registry yet.
go get runtimeconditions.io/x/aws/secretsmanager@v0.1.0
Conditions
Every Condition part this package defines, with the fields you can set. Select a line to open it.
aws.secrets_manager · batch: Batch calls that select secrets by identifiers or filters at runtime.
secretsmanager.Batch is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
Operations |
BatchOperations |
yes | Distinct Secrets Manager API operations required for batch access. Distinct API operations required by the workload. |
Operations[].Name |
BatchOperationsName |
yes | Canonical name of a Secrets Manager API operation. Values: BatchGetSecretValue: Retrieve values for multiple secrets selected by identifiers or filters. |
aws.secrets_manager · secret: Calls that target one existing secret resolved by the platform.
secretsmanager.Secret is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
Operations |
SecretOperations |
yes | Distinct Secrets Manager API operations required on the named secret. Distinct API operations required by the workload. |
Operations[].Name |
SecretOperationsName |
yes | Canonical name of a Secrets Manager API operation. Values: AssociateCrossAccountReplica: Associate a primary secret with an existing replica in another AWS account.CancelRotateSecret: Cancel scheduled rotation for the secret.DeleteResourcePolicy: Remove a resource policy associated with the secret.DeleteSecret: Schedule or request deletion of the secret.DescribeSecret: Retrieve the secret's metadata without reading its value.DisassociateCrossAccountReplica: Detach a cross-account replica from the primary secret.GetResourcePolicy: Retrieve a resource policy associated with the secret.GetSecretValue: Retrieve the value of a version of the secret.ListResourcePolicies: List the resource policies associated with the secret.ListSecretVersionIds: List the versions of the secret.PutResourcePolicy: Attach or update a resource policy for the secret.PutSecretValue: Add a new version of the secret value.RemoveRegionsFromReplication: Remove the secret's replicas from specified regions.ReplicateSecretToRegions: Replicate the secret to additional regions.RestoreSecret: Cancel a scheduled deletion of the secret.RotateSecret: Configure or initiate rotation for the secret.StopReplicationToReplica: Promote a replica to an independent secret.TagResource: Add or update tags on the secret.UntagResource: Remove tags from the secret.UpdateSecret: Update secret settings or add a new secret value.UpdateSecretVersionStage: Move or remove a staging label on a secret version. |
aws.secrets_manager · service: Service calls that can run without selecting an existing secret.
secretsmanager.Service is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
Operations |
ServiceOperations |
yes | Distinct Secrets Manager service operations required by the workload. Distinct API operations required by the workload. |
Operations[].Name |
ServiceOperationsName |
yes | Canonical name of a Secrets Manager API operation. Values: CreateSecret: Create a secret through the Secrets Manager API.GetRandomPassword: Generate a password through the Secrets Manager API.ListSecrets: List secrets visible to the workload.ValidateResourcePolicy: Validate a prospective resource policy, optionally for a particular secret. |
AwsSecretsManager
secretsmanager.AwsSecretsManager declares a aws.secrets_manager Condition.
Python
This package version is generated but not published to its registry yet.
pip install runtimeconditions-aws-secrets-manager
Conditions
Every Condition part this package defines, with the fields you can set. Select a line to open it.
aws.secrets_manager · batch: Batch calls that select secrets by identifiers or filters at runtime.
Batch is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
BatchOperations |
yes | Distinct Secrets Manager API operations required for batch access. Distinct API operations required by the workload. |
operations[].name |
BatchOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: BatchGetSecretValue: Retrieve values for multiple secrets selected by identifiers or filters. |
aws.secrets_manager · secret: Calls that target one existing secret resolved by the platform.
Secret is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
SecretOperations |
yes | Distinct Secrets Manager API operations required on the named secret. Distinct API operations required by the workload. |
operations[].name |
SecretOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: AssociateCrossAccountReplica: Associate a primary secret with an existing replica in another AWS account.CancelRotateSecret: Cancel scheduled rotation for the secret.DeleteResourcePolicy: Remove a resource policy associated with the secret.DeleteSecret: Schedule or request deletion of the secret.DescribeSecret: Retrieve the secret's metadata without reading its value.DisassociateCrossAccountReplica: Detach a cross-account replica from the primary secret.GetResourcePolicy: Retrieve a resource policy associated with the secret.GetSecretValue: Retrieve the value of a version of the secret.ListResourcePolicies: List the resource policies associated with the secret.ListSecretVersionIds: List the versions of the secret.PutResourcePolicy: Attach or update a resource policy for the secret.PutSecretValue: Add a new version of the secret value.RemoveRegionsFromReplication: Remove the secret's replicas from specified regions.ReplicateSecretToRegions: Replicate the secret to additional regions.RestoreSecret: Cancel a scheduled deletion of the secret.RotateSecret: Configure or initiate rotation for the secret.StopReplicationToReplica: Promote a replica to an independent secret.TagResource: Add or update tags on the secret.UntagResource: Remove tags from the secret.UpdateSecret: Update secret settings or add a new secret value.UpdateSecretVersionStage: Move or remove a staging label on a secret version. |
aws.secrets_manager · service: Service calls that can run without selecting an existing secret.
Service is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
ServiceOperations |
yes | Distinct Secrets Manager service operations required by the workload. Distinct API operations required by the workload. |
operations[].name |
ServiceOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: CreateSecret: Create a secret through the Secrets Manager API.GetRandomPassword: Generate a password through the Secrets Manager API.ListSecrets: List secrets visible to the workload.ValidateResourcePolicy: Validate a prospective resource policy, optionally for a particular secret. |
aws_secrets_manager
aws_secrets_manager declares a aws.secrets_manager Condition.
TypeScript
This package version is generated but not published to its registry yet.
npm install @runtimeconditions/aws-secrets-manager
Conditions
Every Condition part this package defines, with the fields you can set. Select a line to open it.
aws.secrets_manager · batch: Batch calls that select secrets by identifiers or filters at runtime.
Batch is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
BatchOperations |
yes | Distinct Secrets Manager API operations required for batch access. Distinct API operations required by the workload. |
operations[].name |
BatchOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: BatchGetSecretValue: Retrieve values for multiple secrets selected by identifiers or filters. |
aws.secrets_manager · secret: Calls that target one existing secret resolved by the platform.
Secret is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
SecretOperations |
yes | Distinct Secrets Manager API operations required on the named secret. Distinct API operations required by the workload. |
operations[].name |
SecretOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: AssociateCrossAccountReplica: Associate a primary secret with an existing replica in another AWS account.CancelRotateSecret: Cancel scheduled rotation for the secret.DeleteResourcePolicy: Remove a resource policy associated with the secret.DeleteSecret: Schedule or request deletion of the secret.DescribeSecret: Retrieve the secret's metadata without reading its value.DisassociateCrossAccountReplica: Detach a cross-account replica from the primary secret.GetResourcePolicy: Retrieve a resource policy associated with the secret.GetSecretValue: Retrieve the value of a version of the secret.ListResourcePolicies: List the resource policies associated with the secret.ListSecretVersionIds: List the versions of the secret.PutResourcePolicy: Attach or update a resource policy for the secret.PutSecretValue: Add a new version of the secret value.RemoveRegionsFromReplication: Remove the secret's replicas from specified regions.ReplicateSecretToRegions: Replicate the secret to additional regions.RestoreSecret: Cancel a scheduled deletion of the secret.RotateSecret: Configure or initiate rotation for the secret.StopReplicationToReplica: Promote a replica to an independent secret.TagResource: Add or update tags on the secret.UntagResource: Remove tags from the secret.UpdateSecret: Update secret settings or add a new secret value.UpdateSecretVersionStage: Move or remove a staging label on a secret version. |
aws.secrets_manager · service: Service calls that can run without selecting an existing secret.
Service is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
ServiceOperations |
yes | Distinct Secrets Manager service operations required by the workload. Distinct API operations required by the workload. |
operations[].name |
ServiceOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: CreateSecret: Create a secret through the Secrets Manager API.GetRandomPassword: Generate a password through the Secrets Manager API.ListSecrets: List secrets visible to the workload.ValidateResourcePolicy: Validate a prospective resource policy, optionally for a particular secret. |
awsSecretsManager
awsSecretsManager declares a aws.secrets_manager Condition.
Java
This package version is generated but not published to its registry yet.
<dependency>
<groupId>io.runtimeconditions.bindings</groupId>
<artifactId>runtimeconditions-aws-secrets-manager</artifactId>
<version>0.1.0</version>
</dependency>
Conditions
Every Condition part this package defines, with the fields you can set. Select a line to open it.
aws.secrets_manager · batch: Batch calls that select secrets by identifiers or filters at runtime.
Batch is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
BatchOperations |
yes | Distinct Secrets Manager API operations required for batch access. Distinct API operations required by the workload. |
operations[].name |
BatchOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: BatchGetSecretValue: Retrieve values for multiple secrets selected by identifiers or filters. |
aws.secrets_manager · secret: Calls that target one existing secret resolved by the platform.
Secret is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
SecretOperations |
yes | Distinct Secrets Manager API operations required on the named secret. Distinct API operations required by the workload. |
operations[].name |
SecretOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: AssociateCrossAccountReplica: Associate a primary secret with an existing replica in another AWS account.CancelRotateSecret: Cancel scheduled rotation for the secret.DeleteResourcePolicy: Remove a resource policy associated with the secret.DeleteSecret: Schedule or request deletion of the secret.DescribeSecret: Retrieve the secret's metadata without reading its value.DisassociateCrossAccountReplica: Detach a cross-account replica from the primary secret.GetResourcePolicy: Retrieve a resource policy associated with the secret.GetSecretValue: Retrieve the value of a version of the secret.ListResourcePolicies: List the resource policies associated with the secret.ListSecretVersionIds: List the versions of the secret.PutResourcePolicy: Attach or update a resource policy for the secret.PutSecretValue: Add a new version of the secret value.RemoveRegionsFromReplication: Remove the secret's replicas from specified regions.ReplicateSecretToRegions: Replicate the secret to additional regions.RestoreSecret: Cancel a scheduled deletion of the secret.RotateSecret: Configure or initiate rotation for the secret.StopReplicationToReplica: Promote a replica to an independent secret.TagResource: Add or update tags on the secret.UntagResource: Remove tags from the secret.UpdateSecret: Update secret settings or add a new secret value.UpdateSecretVersionStage: Move or remove a staging label on a secret version. |
aws.secrets_manager · service: Service calls that can run without selecting an existing secret.
Service is the interface of an aws.secrets_manager Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
ServiceOperations |
yes | Distinct Secrets Manager service operations required by the workload. Distinct API operations required by the workload. |
operations[].name |
ServiceOperationsItemName |
yes | Canonical name of a Secrets Manager API operation. Values: CreateSecret: Create a secret through the Secrets Manager API.GetRandomPassword: Generate a password through the Secrets Manager API.ListSecrets: List secrets visible to the workload.ValidateResourcePolicy: Validate a prospective resource policy, optionally for a particular secret. |
Bindings.awsSecretsManager
Bindings.awsSecretsManager declares a aws.secrets_manager Condition.
Kinds
Interface types
secret
Calls that target one existing secret resolved by the platform.
Fields
interface.operationsDistinct Secrets Manager API operations required on the named secret.
| Value | Description |
|---|---|
AssociateCrossAccountReplica | Associate a primary secret with an existing replica in another AWS account. |
CancelRotateSecret | Cancel scheduled rotation for the secret. |
DeleteResourcePolicy | Remove a resource policy associated with the secret. |
DeleteSecret | Schedule or request deletion of the secret. |
DescribeSecret | Retrieve the secret's metadata without reading its value. |
DisassociateCrossAccountReplica | Detach a cross-account replica from the primary secret. |
GetResourcePolicy | Retrieve a resource policy associated with the secret. |
GetSecretValue | Retrieve the value of a version of the secret. |
ListResourcePolicies | List the resource policies associated with the secret. |
ListSecretVersionIds | List the versions of the secret. |
PutResourcePolicy | Attach or update a resource policy for the secret. |
PutSecretValue | Add a new version of the secret value. |
RemoveRegionsFromReplication | Remove the secret's replicas from specified regions. |
ReplicateSecretToRegions | Replicate the secret to additional regions. |
RestoreSecret | Cancel a scheduled deletion of the secret. |
RotateSecret | Configure or initiate rotation for the secret. |
StopReplicationToReplica | Promote a replica to an independent secret. |
TagResource | Add or update tags on the secret. |
UntagResource | Remove tags from the secret. |
UpdateSecret | Update secret settings or add a new secret value. |
UpdateSecretVersionStage | Move or remove a staging label on a secret version. |
service
Service calls that can run without selecting an existing secret.
Fields
interface.operationsDistinct Secrets Manager service operations required by the workload.
| Value | Description |
|---|---|
CreateSecret | Create a secret through the Secrets Manager API. |
GetRandomPassword | Generate a password through the Secrets Manager API. |
ListSecrets | List secrets visible to the workload. |
ValidateResourcePolicy | Validate a prospective resource policy, optionally for a particular secret. |
batch
Batch calls that select secrets by identifiers or filters at runtime.
Fields
interface.operationsDistinct Secrets Manager API operations required for batch access.
| Value | Description |
|---|---|
BatchGetSecretValue | Retrieve values for multiple secrets selected by identifiers or filters. |