Interface IResourceWithPolicyV2.Jsii$Default
- All Superinterfaces:
IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResourceWithPolicyV2,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IFileSystem.Jsii$Default,ILogGroup.Jsii$Default,IResourceWithPolicy.Jsii$Default
- All Known Implementing Classes:
IFileSystem.Jsii$Proxy,ILogGroup.Jsii$Proxy,IResourceWithPolicy.Jsii$Proxy,IResourceWithPolicyV2.Jsii$Proxy
- Enclosing interface:
IResourceWithPolicyV2
@Internal
public static interface IResourceWithPolicyV2.Jsii$Default
extends IResourceWithPolicyV2, IEnvironmentAware.Jsii$Default
Internal default implementation for
IResourceWithPolicyV2.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IResourceWithPolicyV2
IResourceWithPolicyV2.Jsii$Default, IResourceWithPolicyV2.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.default ResourceEnvironmentgetEnv()The environment this resource belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default
-
addToResourcePolicy
@Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Add a statement to the resource's resource policy.- Specified by:
addToResourcePolicyin interfaceIResourceWithPolicyV2- Parameters:
statement- This parameter is required.
-