Class PolicyState.Builder

  • Enclosing class:
    PolicyState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public PolicyState.Builder arn​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN assigned by AWS to this policy.
        Returns:
        builder
      • arn

        public PolicyState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN assigned by AWS to this policy.
        Returns:
        builder
      • attachmentCount

        public PolicyState.Builder attachmentCount​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> attachmentCount)
        Parameters:
        attachmentCount - Number of entities (users, groups, and roles) that the policy is attached to.
        Returns:
        builder
      • attachmentCount

        public PolicyState.Builder attachmentCount​(java.lang.Integer attachmentCount)
        Parameters:
        attachmentCount - Number of entities (users, groups, and roles) that the policy is attached to.
        Returns:
        builder
      • delayAfterPolicyCreationInMs

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

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

        public PolicyState.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 PolicyState.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 PolicyState.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 PolicyState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • path

        public PolicyState.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 PolicyState.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 PolicyState.Builder policy​(@Nullable
                                          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 PolicyState.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 PolicyState.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 PolicyState.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
      • policyId

        public PolicyState.Builder policyId​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> policyId)
        Parameters:
        policyId - Policy's ID.
        Returns:
        builder
      • policyId

        public PolicyState.Builder policyId​(java.lang.String policyId)
        Parameters:
        policyId - Policy's ID.
        Returns:
        builder
      • tags

        public PolicyState.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 PolicyState.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
      • tagsAll

        public PolicyState.Builder tagsAll​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public PolicyState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder