Package com.pulumi.aws.iam.inputs
Class GetPolicyDocumentStatementArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.iam.inputs.GetPolicyDocumentStatementArgs.Builder
-
- Enclosing class:
- GetPolicyDocumentStatementArgs
public static final class GetPolicyDocumentStatementArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GetPolicyDocumentStatementArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetPolicyDocumentStatementArgs defaults)
-
-
Method Detail
-
actions
public GetPolicyDocumentStatementArgs.Builder actions(@Nullable com.pulumi.core.Output<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 GetPolicyDocumentStatementArgs.Builder actions(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 GetPolicyDocumentStatementArgs.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 GetPolicyDocumentStatementArgs.Builder conditions(@Nullable com.pulumi.core.Output<java.util.List<GetPolicyDocumentStatementConditionArgs>> conditions)
- Parameters:
conditions- Configuration block for a condition. Detailed below.- Returns:
- builder
-
conditions
public GetPolicyDocumentStatementArgs.Builder conditions(java.util.List<GetPolicyDocumentStatementConditionArgs> conditions)
- Parameters:
conditions- Configuration block for a condition. Detailed below.- Returns:
- builder
-
conditions
public GetPolicyDocumentStatementArgs.Builder conditions(GetPolicyDocumentStatementConditionArgs... conditions)
- Parameters:
conditions- Configuration block for a condition. Detailed below.- Returns:
- builder
-
effect
public GetPolicyDocumentStatementArgs.Builder effect(@Nullable com.pulumi.core.Output<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
-
effect
public GetPolicyDocumentStatementArgs.Builder effect(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 GetPolicyDocumentStatementArgs.Builder notActions(@Nullable com.pulumi.core.Output<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 GetPolicyDocumentStatementArgs.Builder notActions(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 GetPolicyDocumentStatementArgs.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 GetPolicyDocumentStatementArgs.Builder notPrincipals(@Nullable com.pulumi.core.Output<java.util.List<GetPolicyDocumentStatementNotPrincipalArgs>> notPrincipals)
- Parameters:
notPrincipals- Like `principals` except these are principals that the statement does *not* apply to.- Returns:
- builder
-
notPrincipals
public GetPolicyDocumentStatementArgs.Builder notPrincipals(java.util.List<GetPolicyDocumentStatementNotPrincipalArgs> notPrincipals)
- Parameters:
notPrincipals- Like `principals` except these are principals that the statement does *not* apply to.- Returns:
- builder
-
notPrincipals
public GetPolicyDocumentStatementArgs.Builder notPrincipals(GetPolicyDocumentStatementNotPrincipalArgs... notPrincipals)
- Parameters:
notPrincipals- Like `principals` except these are principals that the statement does *not* apply to.- Returns:
- builder
-
notResources
public GetPolicyDocumentStatementArgs.Builder notResources(@Nullable com.pulumi.core.Output<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 GetPolicyDocumentStatementArgs.Builder notResources(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 GetPolicyDocumentStatementArgs.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 GetPolicyDocumentStatementArgs.Builder principals(@Nullable com.pulumi.core.Output<java.util.List<GetPolicyDocumentStatementPrincipalArgs>> principals)
- Parameters:
principals- Configuration block for principals. Detailed below.- Returns:
- builder
-
principals
public GetPolicyDocumentStatementArgs.Builder principals(java.util.List<GetPolicyDocumentStatementPrincipalArgs> principals)
- Parameters:
principals- Configuration block for principals. Detailed below.- Returns:
- builder
-
principals
public GetPolicyDocumentStatementArgs.Builder principals(GetPolicyDocumentStatementPrincipalArgs... principals)
- Parameters:
principals- Configuration block for principals. Detailed below.- Returns:
- builder
-
resources
public GetPolicyDocumentStatementArgs.Builder resources(@Nullable com.pulumi.core.Output<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 GetPolicyDocumentStatementArgs.Builder resources(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 GetPolicyDocumentStatementArgs.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 GetPolicyDocumentStatementArgs.Builder sid(@Nullable com.pulumi.core.Output<java.lang.String> sid)
- Parameters:
sid- Sid (statement ID) is an identifier for a policy statement.- Returns:
- builder
-
sid
public GetPolicyDocumentStatementArgs.Builder sid(java.lang.String sid)
- Parameters:
sid- Sid (statement ID) is an identifier for a policy statement.- Returns:
- builder
-
build
public GetPolicyDocumentStatementArgs build()
-
-