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

com.pulumi.aws.inputs.GetServicePrincipalArgs Maven / Gradle / Ivy

Go to download

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

The 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.inputs;

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


public final class GetServicePrincipalArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetServicePrincipalArgs Empty = new GetServicePrincipalArgs();

    /**
     * Region you'd like the SPN for. By default, uses the current region.
     * 
     */
    @Import(name="region")
    private @Nullable Output region;

    /**
     * @return Region you'd like the SPN for. By default, uses the current region.
     * 
     */
    public Optional> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * Name of the service you want to generate a Service Principal Name for.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return Name of the service you want to generate a Service Principal Name for.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    private GetServicePrincipalArgs() {}

    private GetServicePrincipalArgs(GetServicePrincipalArgs $) {
        this.region = $.region;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private GetServicePrincipalArgs $;

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

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

        /**
         * @param region Region you'd like the SPN for. By default, uses the current region.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region Region you'd like the SPN for. By default, uses the current region.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param serviceName Name of the service you want to generate a Service Principal Name for.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName Name of the service you want to generate a Service Principal Name for.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        public GetServicePrincipalArgs build() {
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("GetServicePrincipalArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy