com.pulumi.aws.cloudwatch.inputs.EventConnectionAuthParametersBasicArgs 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.cloudwatch.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;
public final class EventConnectionAuthParametersBasicArgs extends com.pulumi.resources.ResourceArgs {
public static final EventConnectionAuthParametersBasicArgs Empty = new EventConnectionAuthParametersBasicArgs();
/**
* A password for the authorization. Created and stored in AWS Secrets Manager.
*
*/
@Import(name="password", required=true)
private Output password;
/**
* @return A password for the authorization. Created and stored in AWS Secrets Manager.
*
*/
public Output password() {
return this.password;
}
/**
* A username for the authorization.
*
*/
@Import(name="username", required=true)
private Output username;
/**
* @return A username for the authorization.
*
*/
public Output username() {
return this.username;
}
private EventConnectionAuthParametersBasicArgs() {}
private EventConnectionAuthParametersBasicArgs(EventConnectionAuthParametersBasicArgs $) {
this.password = $.password;
this.username = $.username;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventConnectionAuthParametersBasicArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private EventConnectionAuthParametersBasicArgs $;
public Builder() {
$ = new EventConnectionAuthParametersBasicArgs();
}
public Builder(EventConnectionAuthParametersBasicArgs defaults) {
$ = new EventConnectionAuthParametersBasicArgs(Objects.requireNonNull(defaults));
}
/**
* @param password A password for the authorization. Created and stored in AWS Secrets Manager.
*
* @return builder
*
*/
public Builder password(Output password) {
$.password = password;
return this;
}
/**
* @param password A password for the authorization. Created and stored in AWS Secrets Manager.
*
* @return builder
*
*/
public Builder password(String password) {
return password(Output.of(password));
}
/**
* @param username A username for the authorization.
*
* @return builder
*
*/
public Builder username(Output username) {
$.username = username;
return this;
}
/**
* @param username A username for the authorization.
*
* @return builder
*
*/
public Builder username(String username) {
return username(Output.of(username));
}
public EventConnectionAuthParametersBasicArgs build() {
if ($.password == null) {
throw new MissingRequiredPropertyException("EventConnectionAuthParametersBasicArgs", "password");
}
if ($.username == null) {
throw new MissingRequiredPropertyException("EventConnectionAuthParametersBasicArgs", "username");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy