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

com.pulumi.aws.ecr.outputs.RepositoryCreationTemplateEncryptionConfiguration 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.60.0-alpha.1731982519
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.ecr.outputs;

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

@CustomType
public final class RepositoryCreationTemplateEncryptionConfiguration {
    /**
     * @return The encryption type to use for any created repositories. Valid values are `AES256` or `KMS`. Defaults to `AES256`.
     * 
     */
    private @Nullable String encryptionType;
    /**
     * @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.
     * 
     */
    private @Nullable String kmsKey;

    private RepositoryCreationTemplateEncryptionConfiguration() {}
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(RepositoryCreationTemplateEncryptionConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String encryptionType;
        private @Nullable String kmsKey;
        public Builder() {}
        public Builder(RepositoryCreationTemplateEncryptionConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.encryptionType = defaults.encryptionType;
    	      this.kmsKey = defaults.kmsKey;
        }

        @CustomType.Setter
        public Builder encryptionType(@Nullable String encryptionType) {

            this.encryptionType = encryptionType;
            return this;
        }
        @CustomType.Setter
        public Builder kmsKey(@Nullable String kmsKey) {

            this.kmsKey = kmsKey;
            return this;
        }
        public RepositoryCreationTemplateEncryptionConfiguration build() {
            final var _resultValue = new RepositoryCreationTemplateEncryptionConfiguration();
            _resultValue.encryptionType = encryptionType;
            _resultValue.kmsKey = kmsKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy