com.pulumi.aws.wafv2.inputs.WebAclRuleStatementLabelMatchStatementArgs 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.wafv2.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 WebAclRuleStatementLabelMatchStatementArgs extends com.pulumi.resources.ResourceArgs {
public static final WebAclRuleStatementLabelMatchStatementArgs Empty = new WebAclRuleStatementLabelMatchStatementArgs();
/**
* String to match against.
*
*/
@Import(name="key", required=true)
private Output key;
/**
* @return String to match against.
*
*/
public Output key() {
return this.key;
}
/**
* Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`.
*
*/
@Import(name="scope", required=true)
private Output scope;
/**
* @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`.
*
*/
public Output scope() {
return this.scope;
}
private WebAclRuleStatementLabelMatchStatementArgs() {}
private WebAclRuleStatementLabelMatchStatementArgs(WebAclRuleStatementLabelMatchStatementArgs $) {
this.key = $.key;
this.scope = $.scope;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementLabelMatchStatementArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WebAclRuleStatementLabelMatchStatementArgs $;
public Builder() {
$ = new WebAclRuleStatementLabelMatchStatementArgs();
}
public Builder(WebAclRuleStatementLabelMatchStatementArgs defaults) {
$ = new WebAclRuleStatementLabelMatchStatementArgs(Objects.requireNonNull(defaults));
}
/**
* @param key String to match against.
*
* @return builder
*
*/
public Builder key(Output key) {
$.key = key;
return this;
}
/**
* @param key String to match against.
*
* @return builder
*
*/
public Builder key(String key) {
return key(Output.of(key));
}
/**
* @param scope Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`.
*
* @return builder
*
*/
public Builder scope(Output scope) {
$.scope = scope;
return this;
}
/**
* @param scope Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`.
*
* @return builder
*
*/
public Builder scope(String scope) {
return scope(Output.of(scope));
}
public WebAclRuleStatementLabelMatchStatementArgs build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementLabelMatchStatementArgs", "key");
}
if ($.scope == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementLabelMatchStatementArgs", "scope");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy