@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.468Z") @Stability(value=Experimental) public class AwsCustomResourcePolicy extends software.amazon.jsii.JsiiObject
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.customresources.*;
AwsCustomResourcePolicy awsCustomResourcePolicy = AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder()
.resources(List.of("resources"))
.build());
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
ANY_RESOURCE
(experimental) Use this constant to configure access to any resource.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AwsCustomResourcePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AwsCustomResourcePolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static AwsCustomResourcePolicy |
fromSdkCalls(SdkCallsPolicyOptions options)
(experimental) Generate IAM Policy Statements from the configured SDK calls.
|
static AwsCustomResourcePolicy |
fromStatements(List<? extends PolicyStatement> statements)
(experimental) Explicit IAM Policy Statements.
|
List<String> |
getResources()
(experimental) resources for auto-generated from SDK calls.
|
List<PolicyStatement> |
getStatements()
(experimental) statements for explicit policy.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AwsCustomResourcePolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected AwsCustomResourcePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static AwsCustomResourcePolicy fromSdkCalls(@NotNull SdkCallsPolicyOptions options)
Each SDK call with be translated to an IAM Policy Statement in the form of: call.service:call.action (e.g s3:PutObject).
options - options for the policy generation. This parameter is required.@Stability(value=Experimental) @NotNull public static AwsCustomResourcePolicy fromStatements(@NotNull List<? extends PolicyStatement> statements)
statements - the statements to propagate to the SDK calls. This parameter is required.@Stability(value=Experimental) @NotNull public List<PolicyStatement> getStatements()
Copyright © 2022. All rights reserved.