com.pulumi.aws.autoscaling.inputs.TrafficSourceAttachmentTrafficSourceArgs 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.autoscaling.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 TrafficSourceAttachmentTrafficSourceArgs extends com.pulumi.resources.ResourceArgs {
public static final TrafficSourceAttachmentTrafficSourceArgs Empty = new TrafficSourceAttachmentTrafficSourceArgs();
/**
* Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region.
*
*/
@Import(name="identifier", required=true)
private Output identifier;
/**
* @return Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region.
*
*/
public Output identifier() {
return this.identifier;
}
/**
* Provides additional context for the value of `identifier`.
* The following lists the valid values:
* `elb` if `identifier` is the name of a Classic Load Balancer.
* `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group.
* `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Provides additional context for the value of `identifier`.
* The following lists the valid values:
* `elb` if `identifier` is the name of a Classic Load Balancer.
* `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group.
* `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group.
*
*/
public Output type() {
return this.type;
}
private TrafficSourceAttachmentTrafficSourceArgs() {}
private TrafficSourceAttachmentTrafficSourceArgs(TrafficSourceAttachmentTrafficSourceArgs $) {
this.identifier = $.identifier;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TrafficSourceAttachmentTrafficSourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TrafficSourceAttachmentTrafficSourceArgs $;
public Builder() {
$ = new TrafficSourceAttachmentTrafficSourceArgs();
}
public Builder(TrafficSourceAttachmentTrafficSourceArgs defaults) {
$ = new TrafficSourceAttachmentTrafficSourceArgs(Objects.requireNonNull(defaults));
}
/**
* @param identifier Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region.
*
* @return builder
*
*/
public Builder identifier(Output identifier) {
$.identifier = identifier;
return this;
}
/**
* @param identifier Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region.
*
* @return builder
*
*/
public Builder identifier(String identifier) {
return identifier(Output.of(identifier));
}
/**
* @param type Provides additional context for the value of `identifier`.
* The following lists the valid values:
* `elb` if `identifier` is the name of a Classic Load Balancer.
* `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group.
* `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Provides additional context for the value of `identifier`.
* The following lists the valid values:
* `elb` if `identifier` is the name of a Classic Load Balancer.
* `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group.
* `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public TrafficSourceAttachmentTrafficSourceArgs build() {
if ($.identifier == null) {
throw new MissingRequiredPropertyException("TrafficSourceAttachmentTrafficSourceArgs", "identifier");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("TrafficSourceAttachmentTrafficSourceArgs", "type");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy