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

com.pulumi.azurenative.awsconnector.inputs.RegistryCredentialArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.CredentialProviderTypeEnumValueArgs;
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;


/**
 * Definition of RegistryCredential
 * 
 */
public final class RegistryCredentialArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegistryCredentialArgs Empty = new RegistryCredentialArgs();

    /**
     * <p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Amazon Web Services Region. </p> </note>
     * 
     */
    @Import(name="credential")
    private @Nullable Output credential;

    /**
     * @return <p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Amazon Web Services Region. </p> </note>
     * 
     */
    public Optional> credential() {
        return Optional.ofNullable(this.credential);
    }

    /**
     * <p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>
     * 
     */
    @Import(name="credentialProvider")
    private @Nullable Output credentialProvider;

    /**
     * @return <p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>
     * 
     */
    public Optional> credentialProvider() {
        return Optional.ofNullable(this.credentialProvider);
    }

    private RegistryCredentialArgs() {}

    private RegistryCredentialArgs(RegistryCredentialArgs $) {
        this.credential = $.credential;
        this.credentialProvider = $.credentialProvider;
    }

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

    public static final class Builder {
        private RegistryCredentialArgs $;

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

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

        /**
         * @param credential <p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Amazon Web Services Region. </p> </note>
         * 
         * @return builder
         * 
         */
        public Builder credential(@Nullable Output credential) {
            $.credential = credential;
            return this;
        }

        /**
         * @param credential <p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Amazon Web Services Region. </p> </note>
         * 
         * @return builder
         * 
         */
        public Builder credential(String credential) {
            return credential(Output.of(credential));
        }

        /**
         * @param credentialProvider <p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>
         * 
         * @return builder
         * 
         */
        public Builder credentialProvider(@Nullable Output credentialProvider) {
            $.credentialProvider = credentialProvider;
            return this;
        }

        /**
         * @param credentialProvider <p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>
         * 
         * @return builder
         * 
         */
        public Builder credentialProvider(CredentialProviderTypeEnumValueArgs credentialProvider) {
            return credentialProvider(Output.of(credentialProvider));
        }

        public RegistryCredentialArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy