Class ISecretTargetAttachment.Jsii$Proxy
- All Implemented Interfaces:
IConstruct,IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IResource,IResource.Jsii$Default,ISecret,ISecret.Jsii$Default,ISecretTargetAttachment,ISecretTargetAttachment.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default
- Enclosing interface:
- ISecretTargetAttachment
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.secretsmanager.ISecret
ISecret.Jsii$Default, ISecret.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.secretsmanager.ISecretTargetAttachment
ISecretTargetAttachment.Jsii$Default, ISecretTargetAttachment.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RotationScheduleaddRotationSchedule(String id, RotationScheduleOptions options) Adds a rotation schedule to the secret.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final ISecretattach(ISecretAttachmentTarget target) Attach a target to this secret.final voidDenies theDeleteSecretaction to all principals within the current account.final IKeyThe customer-managed encryption key that is used to encrypt this secret, if any.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final ConstructNodegetNode()The construct tree node for this construct.final StringThe ARN of the secret in AWS Secrets Manager.final StringThe full ARN of the secret in AWS Secrets Manager, which is the ARN including the Secrets Manager-supplied 6-character suffix.final StringThe name of the secret.final StringSame assecretArn.final SecretValueRetrieve the value of the stored secret as aSecretValue.final StackgetStack()The stack in which this resource is defined.final GrantgrantRead(IGrantable grantee) Grants reading the secret value to some role.final GrantgrantRead(IGrantable grantee, List<String> versionStages) Grants reading the secret value to some role.final GrantgrantWrite(IGrantable grantee) Grants writing and updating the secret value to some role.final SecretValueInterpret the secret as a JSON object and return a field's value from it as aSecretValue.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceISecret.Jsii$Default- Specified by:
getNodein interfaceISecretTargetAttachment.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceISecret.Jsii$Default- Specified by:
getEnvin interfaceISecretTargetAttachment.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default- Specified by:
getStackin interfaceISecret.Jsii$Default- Specified by:
getStackin interfaceISecretTargetAttachment.Jsii$Default
-
getSecretArn
The ARN of the secret in AWS Secrets Manager.Will return the full ARN if available, otherwise a partial arn. For secrets imported by the deprecated
fromSecretName, it will return thesecretName.- Specified by:
getSecretArnin interfaceISecret- Specified by:
getSecretArnin interfaceISecret.Jsii$Default- Specified by:
getSecretArnin interfaceISecretTargetAttachment.Jsii$Default
-
getSecretName
The name of the secret.For "owned" secrets, this will be the full resource name (secret name + suffix), unless the '@aws-cdk/aws-secretsmanager:parseOwnedSecretName' feature flag is set.
- Specified by:
getSecretNamein interfaceISecret- Specified by:
getSecretNamein interfaceISecret.Jsii$Default- Specified by:
getSecretNamein interfaceISecretTargetAttachment.Jsii$Default
-
getSecretValue
Retrieve the value of the stored secret as aSecretValue.- Specified by:
getSecretValuein interfaceISecret- Specified by:
getSecretValuein interfaceISecret.Jsii$Default- Specified by:
getSecretValuein interfaceISecretTargetAttachment.Jsii$Default
-
getEncryptionKey
The customer-managed encryption key that is used to encrypt this secret, if any.When not specified, the default KMS key for the account and region is being used.
- Specified by:
getEncryptionKeyin interfaceISecret- Specified by:
getEncryptionKeyin interfaceISecret.Jsii$Default- Specified by:
getEncryptionKeyin interfaceISecretTargetAttachment.Jsii$Default
-
getSecretFullArn
The full ARN of the secret in AWS Secrets Manager, which is the ARN including the Secrets Manager-supplied 6-character suffix.This is equal to
secretArnin most cases, but is undefined when a full ARN is not available (e.g., secrets imported by name).- Specified by:
getSecretFullArnin interfaceISecret- Specified by:
getSecretFullArnin interfaceISecret.Jsii$Default- Specified by:
getSecretFullArnin interfaceISecretTargetAttachment.Jsii$Default
-
getSecretTargetAttachmentSecretArn
Same assecretArn.- Specified by:
getSecretTargetAttachmentSecretArnin interfaceISecretTargetAttachment- Specified by:
getSecretTargetAttachmentSecretArnin interfaceISecretTargetAttachment.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceISecret.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceISecretTargetAttachment.Jsii$Default- Parameters:
policy- This parameter is required.
-
addRotationSchedule
@Stability(Stable) @NotNull public final RotationSchedule addRotationSchedule(@NotNull String id, @NotNull RotationScheduleOptions options) Adds a rotation schedule to the secret.- Specified by:
addRotationSchedulein interfaceISecret- Specified by:
addRotationSchedulein interfaceISecret.Jsii$Default- Specified by:
addRotationSchedulein interfaceISecretTargetAttachment.Jsii$Default- Parameters:
id- This parameter is required.options- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.If this secret was created in this stack, a resource policy will be automatically created upon the first call to
addToResourcePolicy. If the secret is imported, then this is a no-op.- Specified by:
addToResourcePolicyin interfaceISecret- Specified by:
addToResourcePolicyin interfaceISecret.Jsii$Default- Specified by:
addToResourcePolicyin interfaceISecretTargetAttachment.Jsii$Default- Parameters:
statement- This parameter is required.
-
attach
Attach a target to this secret.- Specified by:
attachin interfaceISecret- Specified by:
attachin interfaceISecret.Jsii$Default- Specified by:
attachin interfaceISecretTargetAttachment.Jsii$Default- Parameters:
target- The target to attach. This parameter is required.- Returns:
- An attached secret
-
denyAccountRootDelete
@Stability(Stable) public final void denyAccountRootDelete()Denies theDeleteSecretaction to all principals within the current account.- Specified by:
denyAccountRootDeletein interfaceISecret- Specified by:
denyAccountRootDeletein interfaceISecret.Jsii$Default- Specified by:
denyAccountRootDeletein interfaceISecretTargetAttachment.Jsii$Default
-
grantRead
@Stability(Stable) @NotNull public final Grant grantRead(@NotNull IGrantable grantee, @Nullable List<String> versionStages) Grants reading the secret value to some role.- Specified by:
grantReadin interfaceISecret- Specified by:
grantReadin interfaceISecret.Jsii$Default- Specified by:
grantReadin interfaceISecretTargetAttachment.Jsii$Default- Parameters:
grantee- the principal being granted permission. This parameter is required.versionStages- the version stages the grant is limited to.
-
grantRead
Grants reading the secret value to some role. -
grantWrite
Grants writing and updating the secret value to some role.- Specified by:
grantWritein interfaceISecret- Specified by:
grantWritein interfaceISecret.Jsii$Default- Specified by:
grantWritein interfaceISecretTargetAttachment.Jsii$Default- Parameters:
grantee- the principal being granted permission. This parameter is required.
-
secretValueFromJson
Interpret the secret as a JSON object and return a field's value from it as aSecretValue.- Specified by:
secretValueFromJsonin interfaceISecret- Specified by:
secretValueFromJsonin interfaceISecret.Jsii$Default- Specified by:
secretValueFromJsonin interfaceISecretTargetAttachment.Jsii$Default- Parameters:
key- This parameter is required.
-