@Stability(value=Experimental) public static final class PolicyStatement.Builder extends Object implements software.amazon.jsii.Builder<PolicyStatement>
PolicyStatement.| Modifier and Type | Method and Description |
|---|---|
PolicyStatement.Builder |
actions(List<String> actions)
(experimental) List of actions to add to the statement.
|
PolicyStatement |
build() |
PolicyStatement.Builder |
conditions(Map<String,? extends Object> conditions)
(experimental) Conditions to add to the statement.
|
static PolicyStatement.Builder |
create() |
PolicyStatement.Builder |
effect(Effect effect)
(experimental) Whether to allow or deny the actions in this statement.
|
PolicyStatement.Builder |
notActions(List<String> notActions)
(experimental) List of not actions to add to the statement.
|
PolicyStatement.Builder |
notPrincipals(List<? extends IPrincipal> notPrincipals)
(experimental) List of not principals to add to the statement.
|
PolicyStatement.Builder |
notResources(List<String> notResources)
(experimental) NotResource ARNs to add to the statement.
|
PolicyStatement.Builder |
principals(List<? extends IPrincipal> principals)
(experimental) List of principals to add to the statement.
|
PolicyStatement.Builder |
resources(List<String> resources)
(experimental) Resource ARNs to add to the statement.
|
PolicyStatement.Builder |
sid(String sid)
(experimental) The Sid (statement ID) is an optional identifier that you provide for the policy statement.
|
@Stability(value=Experimental) public static PolicyStatement.Builder create()
PolicyStatement.Builder.@Stability(value=Experimental) public PolicyStatement.Builder actions(List<String> actions)
Default: - no actions
actions - List of actions to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder conditions(Map<String,? extends Object> conditions)
Default: - no condition
conditions - Conditions to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder effect(Effect effect)
Default: Effect.ALLOW
effect - Whether to allow or deny the actions in this statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder notActions(List<String> notActions)
Default: - no not-actions
notActions - List of not actions to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder notPrincipals(List<? extends IPrincipal> notPrincipals)
Default: - no not principals
notPrincipals - List of not principals to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder notResources(List<String> notResources)
Default: - no not-resources
notResources - NotResource ARNs to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder principals(List<? extends IPrincipal> principals)
Default: - no principals
principals - List of principals to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder resources(List<String> resources)
Default: - no resources
resources - Resource ARNs to add to the statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement.Builder sid(String sid)
You can assign a Sid value to each statement in a statement array. In services that let you specify an ID element, such as SQS and SNS, the Sid value is just a sub-ID of the policy document's ID. In IAM, the Sid value must be unique within a JSON policy.
Default: - no sid
sid - The Sid (statement ID) is an optional identifier that you provide for the policy statement. This parameter is required.this@Stability(value=Experimental) public PolicyStatement build()
build in interface software.amazon.jsii.Builder<PolicyStatement>Copyright © 2021. All rights reserved.