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

com.pulumi.aws.codepipeline.outputs.PipelineArtifactStore Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.66.3
Show 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.codepipeline.outputs;

import com.pulumi.aws.codepipeline.outputs.PipelineArtifactStoreEncryptionKey;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PipelineArtifactStore {
    /**
     * @return The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An `encryption_key` block is documented below.
     * 
     */
    private @Nullable PipelineArtifactStoreEncryptionKey encryptionKey;
    /**
     * @return The location where AWS CodePipeline stores artifacts for a pipeline; currently only `S3` is supported.
     * 
     */
    private String location;
    /**
     * @return The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
     * 
     */
    private @Nullable String region;
    /**
     * @return The type of the artifact store, such as Amazon S3
     * 
     */
    private String type;

    private PipelineArtifactStore() {}
    /**
     * @return The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An `encryption_key` block is documented below.
     * 
     */
    public Optional encryptionKey() {
        return Optional.ofNullable(this.encryptionKey);
    }
    /**
     * @return The location where AWS CodePipeline stores artifacts for a pipeline; currently only `S3` is supported.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }
    /**
     * @return The type of the artifact store, such as Amazon S3
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(PipelineArtifactStore defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PipelineArtifactStoreEncryptionKey encryptionKey;
        private String location;
        private @Nullable String region;
        private String type;
        public Builder() {}
        public Builder(PipelineArtifactStore defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.encryptionKey = defaults.encryptionKey;
    	      this.location = defaults.location;
    	      this.region = defaults.region;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder encryptionKey(@Nullable PipelineArtifactStoreEncryptionKey encryptionKey) {

            this.encryptionKey = encryptionKey;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("PipelineArtifactStore", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder region(@Nullable String region) {

            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("PipelineArtifactStore", "type");
            }
            this.type = type;
            return this;
        }
        public PipelineArtifactStore build() {
            final var _resultValue = new PipelineArtifactStore();
            _resultValue.encryptionKey = encryptionKey;
            _resultValue.location = location;
            _resultValue.region = region;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy