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

com.pulumi.googlenative.container.v1beta1.inputs.WorkloadIdentityConfigArgs 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.googlenative.container.v1beta1.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;


/**
 * Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
 * 
 */
public final class WorkloadIdentityConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadIdentityConfigArgs Empty = new WorkloadIdentityConfigArgs();

    /**
     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
     * 
     */
    @Import(name="identityNamespace")
    private @Nullable Output identityNamespace;

    /**
     * @return IAM Identity Namespace to attach all Kubernetes Service Accounts to.
     * 
     */
    public Optional> identityNamespace() {
        return Optional.ofNullable(this.identityNamespace);
    }

    /**
     * identity provider is the third party identity provider.
     * 
     */
    @Import(name="identityProvider")
    private @Nullable Output identityProvider;

    /**
     * @return identity provider is the third party identity provider.
     * 
     */
    public Optional> identityProvider() {
        return Optional.ofNullable(this.identityProvider);
    }

    /**
     * The workload pool to attach all Kubernetes service accounts to.
     * 
     */
    @Import(name="workloadPool")
    private @Nullable Output workloadPool;

    /**
     * @return The workload pool to attach all Kubernetes service accounts to.
     * 
     */
    public Optional> workloadPool() {
        return Optional.ofNullable(this.workloadPool);
    }

    private WorkloadIdentityConfigArgs() {}

    private WorkloadIdentityConfigArgs(WorkloadIdentityConfigArgs $) {
        this.identityNamespace = $.identityNamespace;
        this.identityProvider = $.identityProvider;
        this.workloadPool = $.workloadPool;
    }

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

    public static final class Builder {
        private WorkloadIdentityConfigArgs $;

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

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

        /**
         * @param identityNamespace IAM Identity Namespace to attach all Kubernetes Service Accounts to.
         * 
         * @return builder
         * 
         */
        public Builder identityNamespace(@Nullable Output identityNamespace) {
            $.identityNamespace = identityNamespace;
            return this;
        }

        /**
         * @param identityNamespace IAM Identity Namespace to attach all Kubernetes Service Accounts to.
         * 
         * @return builder
         * 
         */
        public Builder identityNamespace(String identityNamespace) {
            return identityNamespace(Output.of(identityNamespace));
        }

        /**
         * @param identityProvider identity provider is the third party identity provider.
         * 
         * @return builder
         * 
         */
        public Builder identityProvider(@Nullable Output identityProvider) {
            $.identityProvider = identityProvider;
            return this;
        }

        /**
         * @param identityProvider identity provider is the third party identity provider.
         * 
         * @return builder
         * 
         */
        public Builder identityProvider(String identityProvider) {
            return identityProvider(Output.of(identityProvider));
        }

        /**
         * @param workloadPool The workload pool to attach all Kubernetes service accounts to.
         * 
         * @return builder
         * 
         */
        public Builder workloadPool(@Nullable Output workloadPool) {
            $.workloadPool = workloadPool;
            return this;
        }

        /**
         * @param workloadPool The workload pool to attach all Kubernetes service accounts to.
         * 
         * @return builder
         * 
         */
        public Builder workloadPool(String workloadPool) {
            return workloadPool(Output.of(workloadPool));
        }

        public WorkloadIdentityConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy