@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.050Z") @Stability(value=Stable) public class ResourcePolicy extends Resource
Policies define the operations that are allowed on this resource.
You almost never need to define this construct directly.
All AWS resources that support resource policies have a method called
addToResourcePolicy(), which will automatically create a new resource
policy if one doesn't exist yet, otherwise it will add to the existing
policy.
Prefer to use addToResourcePolicy() instead.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.secretsmanager.*;
Secret secret;
ResourcePolicy resourcePolicy = ResourcePolicy.Builder.create(this, "MyResourcePolicy")
.secret(secret)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcePolicy.Builder
A fluent builder for
ResourcePolicy. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
ResourcePolicy(software.constructs.Construct scope,
String id,
ResourcePolicyProps props) |
protected |
ResourcePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ResourcePolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
PolicyDocument |
getDocument()
The IAM policy document for this policy.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ResourcePolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected ResourcePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ResourcePolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ResourcePolicyProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public PolicyDocument getDocument()
Copyright © 2022. All rights reserved.