com.pulumi.aws.wafregional.WebAclAssociationArgs 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.
// *** 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.wafregional;
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 WebAclAssociationArgs extends com.pulumi.resources.ResourceArgs {
public static final WebAclAssociationArgs Empty = new WebAclAssociationArgs();
/**
* ARN of the resource to associate with. For example, an Application Load Balancer or API Gateway Stage.
*
*/
@Import(name="resourceArn", required=true)
private Output resourceArn;
/**
* @return ARN of the resource to associate with. For example, an Application Load Balancer or API Gateway Stage.
*
*/
public Output resourceArn() {
return this.resourceArn;
}
/**
* The ID of the WAF Regional WebACL to create an association.
*
*/
@Import(name="webAclId", required=true)
private Output webAclId;
/**
* @return The ID of the WAF Regional WebACL to create an association.
*
*/
public Output webAclId() {
return this.webAclId;
}
private WebAclAssociationArgs() {}
private WebAclAssociationArgs(WebAclAssociationArgs $) {
this.resourceArn = $.resourceArn;
this.webAclId = $.webAclId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclAssociationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WebAclAssociationArgs $;
public Builder() {
$ = new WebAclAssociationArgs();
}
public Builder(WebAclAssociationArgs defaults) {
$ = new WebAclAssociationArgs(Objects.requireNonNull(defaults));
}
/**
* @param resourceArn ARN of the resource to associate with. For example, an Application Load Balancer or API Gateway Stage.
*
* @return builder
*
*/
public Builder resourceArn(Output resourceArn) {
$.resourceArn = resourceArn;
return this;
}
/**
* @param resourceArn ARN of the resource to associate with. For example, an Application Load Balancer or API Gateway Stage.
*
* @return builder
*
*/
public Builder resourceArn(String resourceArn) {
return resourceArn(Output.of(resourceArn));
}
/**
* @param webAclId The ID of the WAF Regional WebACL to create an association.
*
* @return builder
*
*/
public Builder webAclId(Output webAclId) {
$.webAclId = webAclId;
return this;
}
/**
* @param webAclId The ID of the WAF Regional WebACL to create an association.
*
* @return builder
*
*/
public Builder webAclId(String webAclId) {
return webAclId(Output.of(webAclId));
}
public WebAclAssociationArgs build() {
if ($.resourceArn == null) {
throw new MissingRequiredPropertyException("WebAclAssociationArgs", "resourceArn");
}
if ($.webAclId == null) {
throw new MissingRequiredPropertyException("WebAclAssociationArgs", "webAclId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy