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

com.pulumi.aws.ecr.inputs.RepositoryCreationTemplateEncryptionConfigurationArgs Maven / Gradle / Ivy

// *** 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.ecr.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RepositoryCreationTemplateEncryptionConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final RepositoryCreationTemplateEncryptionConfigurationArgs Empty = new RepositoryCreationTemplateEncryptionConfigurationArgs();

    /**
     * The encryption type to use for any created repositories. Valid values are `AES256` or `KMS`. Defaults to `AES256`.
     * 
     */
    @Import(name="encryptionType")
    private @Nullable Output encryptionType;

    /**
     * @return The encryption type to use for any created repositories. Valid values are `AES256` or `KMS`. Defaults to `AES256`.
     * 
     */
    public Optional> encryptionType() {
        return Optional.ofNullable(this.encryptionType);
    }

    /**
     * The ARN of the KMS key to use when `encryption_type` is `KMS`. If not specified, uses the default AWS managed key for ECR.
     * 
     */
    @Import(name="kmsKey")
    private @Nullable Output kmsKey;

    /**
     * @return The ARN of the KMS key to use when `encryption_type` is `KMS`. If not specified, uses the default AWS managed key for ECR.
     * 
     */
    public Optional> kmsKey() {
        return Optional.ofNullable(this.kmsKey);
    }

    private RepositoryCreationTemplateEncryptionConfigurationArgs() {}

    private RepositoryCreationTemplateEncryptionConfigurationArgs(RepositoryCreationTemplateEncryptionConfigurationArgs $) {
        this.encryptionType = $.encryptionType;
        this.kmsKey = $.kmsKey;
    }

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

    public static final class Builder {
        private RepositoryCreationTemplateEncryptionConfigurationArgs $;

        public Builder() {
            $ = new RepositoryCreationTemplateEncryptionConfigurationArgs();
        }

        public Builder(RepositoryCreationTemplateEncryptionConfigurationArgs defaults) {
            $ = new RepositoryCreationTemplateEncryptionConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param encryptionType The encryption type to use for any created repositories. Valid values are `AES256` or `KMS`. Defaults to `AES256`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionType(@Nullable Output encryptionType) {
            $.encryptionType = encryptionType;
            return this;
        }

        /**
         * @param encryptionType The encryption type to use for any created repositories. Valid values are `AES256` or `KMS`. Defaults to `AES256`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionType(String encryptionType) {
            return encryptionType(Output.of(encryptionType));
        }

        /**
         * @param kmsKey The ARN of the KMS key to use when `encryption_type` is `KMS`. If not specified, uses the default AWS managed key for ECR.
         * 
         * @return builder
         * 
         */
        public Builder kmsKey(@Nullable Output kmsKey) {
            $.kmsKey = kmsKey;
            return this;
        }

        /**
         * @param kmsKey The ARN of the KMS key to use when `encryption_type` is `KMS`. If not specified, uses the default AWS managed key for ECR.
         * 
         * @return builder
         * 
         */
        public Builder kmsKey(String kmsKey) {
            return kmsKey(Output.of(kmsKey));
        }

        public RepositoryCreationTemplateEncryptionConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy