Class PolicyArgs.Builder

  • Enclosing class:
    PolicyArgs

    public static final class PolicyArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(PolicyArgs defaults)
    • Method Detail

      • delayAfterPolicyCreationInMs

        public PolicyArgs.Builder delayAfterPolicyCreationInMs​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Integer> delayAfterPolicyCreationInMs)
        Parameters:
        delayAfterPolicyCreationInMs - Number of ms to wait between creating the policy and setting its version as default. May be required in environments with very high S3 IO loads.
        Returns:
        builder
      • delayAfterPolicyCreationInMs

        public PolicyArgs.Builder delayAfterPolicyCreationInMs​(java.lang.Integer delayAfterPolicyCreationInMs)
        Parameters:
        delayAfterPolicyCreationInMs - Number of ms to wait between creating the policy and setting its version as default. May be required in environments with very high S3 IO loads.
        Returns:
        builder
      • description

        public PolicyArgs.Builder description​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the IAM policy.
        Returns:
        builder
      • description

        public PolicyArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the IAM policy.
        Returns:
        builder
      • name

        public PolicyArgs.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the policy. If omitted, the provider will assign a random, unique name.
        Returns:
        builder
      • name

        public PolicyArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the policy. If omitted, the provider will assign a random, unique name.
        Returns:
        builder
      • namePrefix

        public PolicyArgs.Builder namePrefix​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public PolicyArgs.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • path

        public PolicyArgs.Builder path​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> path)
        Parameters:
        path - Path in which to create the policy. See [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) for more information.
        Returns:
        builder
      • path

        public PolicyArgs.Builder path​(java.lang.String path)
        Parameters:
        path - Path in which to create the policy. See [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) for more information.
        Returns:
        builder
      • policy

        public PolicyArgs.Builder policy​(com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​PolicyDocumentArgs>> policy)
        Parameters:
        policy - Policy document. This is a JSON formatted string. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide
        Returns:
        builder
      • policy

        public PolicyArgs.Builder policy​(com.pulumi.core.Either<java.lang.String,​PolicyDocumentArgs> policy)
        Parameters:
        policy - Policy document. This is a JSON formatted string. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide
        Returns:
        builder
      • policy

        public PolicyArgs.Builder policy​(java.lang.String policy)
        Parameters:
        policy - Policy document. This is a JSON formatted string. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide
        Returns:
        builder
      • policy

        public PolicyArgs.Builder policy​(PolicyDocumentArgs policy)
        Parameters:
        policy - Policy document. This is a JSON formatted string. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide
        Returns:
        builder
      • tags

        public PolicyArgs.Builder tags​(@Nullable
                                       com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of resource tags for the IAM Policy. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public PolicyArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of resource tags for the IAM Policy. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder