Class SecretArgs.Builder

  • Enclosing class:
    SecretArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(SecretArgs defaults)
    • Method Detail

      • annotations

        public SecretArgs.Builder annotations​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> annotations)
        Parameters:
        annotations - Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field `effective_annotations` for all of the annotations present on the resource.
        Returns:
        builder
      • annotations

        public SecretArgs.Builder annotations​(java.util.Map<java.lang.String,​java.lang.String> annotations)
        Parameters:
        annotations - Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field `effective_annotations` for all of the annotations present on the resource.
        Returns:
        builder
      • expireTime

        public SecretArgs.Builder expireTime​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> expireTime)
        Parameters:
        expireTime - Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". Only one of `expire_time` or `ttl` can be provided.
        Returns:
        builder
      • expireTime

        public SecretArgs.Builder expireTime​(java.lang.String expireTime)
        Parameters:
        expireTime - Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". Only one of `expire_time` or `ttl` can be provided.
        Returns:
        builder
      • labels

        public SecretArgs.Builder labels​(@Nullable
                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> labels)
        Parameters:
        labels - The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be assigned to a given resource. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource.
        Returns:
        builder
      • labels

        public SecretArgs.Builder labels​(java.util.Map<java.lang.String,​java.lang.String> labels)
        Parameters:
        labels - The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be assigned to a given resource. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource.
        Returns:
        builder
      • project

        public SecretArgs.Builder project​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public SecretArgs.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • replication

        public SecretArgs.Builder replication​(com.pulumi.core.Output<SecretReplicationArgs> replication)
        Parameters:
        replication - The replication policy of the secret data attached to the Secret. It cannot be changed after the Secret has been created. Structure is documented below.
        Returns:
        builder
      • replication

        public SecretArgs.Builder replication​(SecretReplicationArgs replication)
        Parameters:
        replication - The replication policy of the secret data attached to the Secret. It cannot be changed after the Secret has been created. Structure is documented below.
        Returns:
        builder
      • rotation

        public SecretArgs.Builder rotation​(@Nullable
                                           com.pulumi.core.Output<SecretRotationArgs> rotation)
        Parameters:
        rotation - The rotation time and period for a Secret. At `next_rotation_time`, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. `topics` must be set to configure rotation. Structure is documented below.
        Returns:
        builder
      • rotation

        public SecretArgs.Builder rotation​(SecretRotationArgs rotation)
        Parameters:
        rotation - The rotation time and period for a Secret. At `next_rotation_time`, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. `topics` must be set to configure rotation. Structure is documented below.
        Returns:
        builder
      • secretId

        public SecretArgs.Builder secretId​(com.pulumi.core.Output<java.lang.String> secretId)
        Parameters:
        secretId - This must be unique within the project.
        Returns:
        builder
      • secretId

        public SecretArgs.Builder secretId​(java.lang.String secretId)
        Parameters:
        secretId - This must be unique within the project.
        Returns:
        builder
      • topics

        public SecretArgs.Builder topics​(@Nullable
                                         com.pulumi.core.Output<java.util.List<SecretTopicArgs>> topics)
        Parameters:
        topics - A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions. Structure is documented below.
        Returns:
        builder
      • topics

        public SecretArgs.Builder topics​(java.util.List<SecretTopicArgs> topics)
        Parameters:
        topics - A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions. Structure is documented below.
        Returns:
        builder
      • topics

        public SecretArgs.Builder topics​(SecretTopicArgs... topics)
        Parameters:
        topics - A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions. Structure is documented below.
        Returns:
        builder
      • ttl

        public SecretArgs.Builder ttl​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> ttl)
        Parameters:
        ttl - The TTL for the Secret. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Only one of `ttl` or `expire_time` can be provided.
        Returns:
        builder
      • ttl

        public SecretArgs.Builder ttl​(java.lang.String ttl)
        Parameters:
        ttl - The TTL for the Secret. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Only one of `ttl` or `expire_time` can be provided.
        Returns:
        builder
      • versionAliases

        public SecretArgs.Builder versionAliases​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> versionAliases)
        Parameters:
        versionAliases - Mapping from version alias to version name. A version alias is a string with a maximum length of 63 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (-) and underscore ('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No more than 50 aliases can be assigned to a given secret. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
        Returns:
        builder
      • versionAliases

        public SecretArgs.Builder versionAliases​(java.util.Map<java.lang.String,​java.lang.String> versionAliases)
        Parameters:
        versionAliases - Mapping from version alias to version name. A version alias is a string with a maximum length of 63 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (-) and underscore ('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No more than 50 aliases can be assigned to a given secret. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
        Returns:
        builder