Package com.pulumi.aws.iam.inputs
Class GetPolicyDocumentStatement.Builder
- java.lang.Object
-
- com.pulumi.aws.iam.inputs.GetPolicyDocumentStatement.Builder
-
- Enclosing class:
- GetPolicyDocumentStatement
public static final class GetPolicyDocumentStatement.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GetPolicyDocumentStatement defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetPolicyDocumentStatement defaults)
-
-
Method Detail
-
actions
public GetPolicyDocumentStatement.Builder actions(@Nullable java.util.List<java.lang.String> actions)
- Parameters:
actions- List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`.- Returns:
- builder
-
actions
public GetPolicyDocumentStatement.Builder actions(java.lang.String... actions)
- Parameters:
actions- List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`.- Returns:
- builder
-
conditions
public GetPolicyDocumentStatement.Builder conditions(@Nullable java.util.List<GetPolicyDocumentStatementCondition> conditions)
- Parameters:
conditions- Configuration block for a condition. Detailed below.- Returns:
- builder
-
conditions
public GetPolicyDocumentStatement.Builder conditions(GetPolicyDocumentStatementCondition... conditions)
- Parameters:
conditions- Configuration block for a condition. Detailed below.- Returns:
- builder
-
effect
public GetPolicyDocumentStatement.Builder effect(@Nullable java.lang.String effect)
- Parameters:
effect- Whether this statement allows or denies the given actions. Valid values are `Allow` and `Deny`. Defaults to `Allow`.- Returns:
- builder
-
notActions
public GetPolicyDocumentStatement.Builder notActions(@Nullable java.util.List<java.lang.String> notActions)
- Parameters:
notActions- List of actions that this statement does *not* apply to. Use to apply a policy statement to all actions *except* those listed.- Returns:
- builder
-
notActions
public GetPolicyDocumentStatement.Builder notActions(java.lang.String... notActions)
- Parameters:
notActions- List of actions that this statement does *not* apply to. Use to apply a policy statement to all actions *except* those listed.- Returns:
- builder
-
notPrincipals
public GetPolicyDocumentStatement.Builder notPrincipals(@Nullable java.util.List<GetPolicyDocumentStatementNotPrincipal> notPrincipals)
- Parameters:
notPrincipals- Like `principals` except these are principals that the statement does *not* apply to.- Returns:
- builder
-
notPrincipals
public GetPolicyDocumentStatement.Builder notPrincipals(GetPolicyDocumentStatementNotPrincipal... notPrincipals)
- Parameters:
notPrincipals- Like `principals` except these are principals that the statement does *not* apply to.- Returns:
- builder
-
notResources
public GetPolicyDocumentStatement.Builder notResources(@Nullable java.util.List<java.lang.String> notResources)
- Parameters:
notResources- List of resource ARNs that this statement does *not* apply to. Use to apply a policy statement to all resources *except* those listed. Conflicts with `resources`.- Returns:
- builder
-
notResources
public GetPolicyDocumentStatement.Builder notResources(java.lang.String... notResources)
- Parameters:
notResources- List of resource ARNs that this statement does *not* apply to. Use to apply a policy statement to all resources *except* those listed. Conflicts with `resources`.- Returns:
- builder
-
principals
public GetPolicyDocumentStatement.Builder principals(@Nullable java.util.List<GetPolicyDocumentStatementPrincipal> principals)
- Parameters:
principals- Configuration block for principals. Detailed below.- Returns:
- builder
-
principals
public GetPolicyDocumentStatement.Builder principals(GetPolicyDocumentStatementPrincipal... principals)
- Parameters:
principals- Configuration block for principals. Detailed below.- Returns:
- builder
-
resources
public GetPolicyDocumentStatement.Builder resources(@Nullable java.util.List<java.lang.String> resources)
- Parameters:
resources- List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with `notResources`.- Returns:
- builder
-
resources
public GetPolicyDocumentStatement.Builder resources(java.lang.String... resources)
- Parameters:
resources- List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with `notResources`.- Returns:
- builder
-
sid
public GetPolicyDocumentStatement.Builder sid(@Nullable java.lang.String sid)
- Parameters:
sid- Sid (statement ID) is an identifier for a policy statement.- Returns:
- builder
-
build
public GetPolicyDocumentStatement build()
-
-