All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.secretsmanager.outputs.GetSecretResult Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.secretsmanager.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetSecretResult {
    /**
     * @return ARN of the secret.
     * 
     */
    private String arn;
    /**
     * @return Created date of the secret in UTC.
     * 
     */
    private String createdDate;
    /**
     * @return Description of the secret.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Key Management Service (KMS) Customer Master Key (CMK) associated with the secret.
     * 
     */
    private String kmsKeyId;
    /**
     * @return Last updated date of the secret in UTC.
     * 
     */
    private String lastChangedDate;
    private String name;
    /**
     * @return Resource-based policy document that's attached to the secret.
     * 
     */
    private String policy;
    /**
     * @return Tags of the secret.
     * 
     */
    private Map tags;

    private GetSecretResult() {}
    /**
     * @return ARN of the secret.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return Created date of the secret in UTC.
     * 
     */
    public String createdDate() {
        return this.createdDate;
    }
    /**
     * @return Description of the secret.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Key Management Service (KMS) Customer Master Key (CMK) associated with the secret.
     * 
     */
    public String kmsKeyId() {
        return this.kmsKeyId;
    }
    /**
     * @return Last updated date of the secret in UTC.
     * 
     */
    public String lastChangedDate() {
        return this.lastChangedDate;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return Resource-based policy document that's attached to the secret.
     * 
     */
    public String policy() {
        return this.policy;
    }
    /**
     * @return Tags of the secret.
     * 
     */
    public Map tags() {
        return this.tags;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetSecretResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String createdDate;
        private String description;
        private String id;
        private String kmsKeyId;
        private String lastChangedDate;
        private String name;
        private String policy;
        private Map tags;
        public Builder() {}
        public Builder(GetSecretResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.createdDate = defaults.createdDate;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.kmsKeyId = defaults.kmsKeyId;
    	      this.lastChangedDate = defaults.lastChangedDate;
    	      this.name = defaults.name;
    	      this.policy = defaults.policy;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder createdDate(String createdDate) {
            if (createdDate == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "createdDate");
            }
            this.createdDate = createdDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kmsKeyId(String kmsKeyId) {
            if (kmsKeyId == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "kmsKeyId");
            }
            this.kmsKeyId = kmsKeyId;
            return this;
        }
        @CustomType.Setter
        public Builder lastChangedDate(String lastChangedDate) {
            if (lastChangedDate == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "lastChangedDate");
            }
            this.lastChangedDate = lastChangedDate;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder policy(String policy) {
            if (policy == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "policy");
            }
            this.policy = policy;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        public GetSecretResult build() {
            final var _resultValue = new GetSecretResult();
            _resultValue.arn = arn;
            _resultValue.createdDate = createdDate;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.kmsKeyId = kmsKeyId;
            _resultValue.lastChangedDate = lastChangedDate;
            _resultValue.name = name;
            _resultValue.policy = policy;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy