com.pulumi.aws.inputs.GetServicePrincipalPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
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.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 GetServicePrincipalPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetServicePrincipalPlainArgs Empty = new GetServicePrincipalPlainArgs();
/**
* Region you'd like the SPN for. By default, uses the current region.
*
*/
@Import(name="region")
private @Nullable String 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 String serviceName;
/**
* @return Name of the service you want to generate a Service Principal Name for.
*
*/
public String serviceName() {
return this.serviceName;
}
private GetServicePrincipalPlainArgs() {}
private GetServicePrincipalPlainArgs(GetServicePrincipalPlainArgs $) {
this.region = $.region;
this.serviceName = $.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetServicePrincipalPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetServicePrincipalPlainArgs $;
public Builder() {
$ = new GetServicePrincipalPlainArgs();
}
public Builder(GetServicePrincipalPlainArgs defaults) {
$ = new GetServicePrincipalPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param region Region you'd like the SPN for. By default, uses the current region.
*
* @return builder
*
*/
public Builder region(@Nullable String region) {
$.region = region;
return this;
}
/**
* @param serviceName Name of the service you want to generate a Service Principal Name for.
*
* @return builder
*
*/
public Builder serviceName(String serviceName) {
$.serviceName = serviceName;
return this;
}
public GetServicePrincipalPlainArgs build() {
if ($.serviceName == null) {
throw new MissingRequiredPropertyException("GetServicePrincipalPlainArgs", "serviceName");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy