com.pulumi.aws.iam.outputs.GetPolicyDocumentStatementCondition 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.iam.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetPolicyDocumentStatementCondition {
/**
* @return Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate.
*
*/
private String test;
/**
* @return Values to evaluate the condition against. If multiple values are provided, the condition matches if at least one of them applies. That is, AWS evaluates multiple values as though using an "OR" boolean operation.
*
*/
private List values;
/**
* @return Name of a [Context Variable](http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#AvailableKeys) to apply the condition to. Context variables may either be standard AWS variables starting with `aws:` or service-specific variables prefixed with the service name.
*
*/
private String variable;
private GetPolicyDocumentStatementCondition() {}
/**
* @return Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate.
*
*/
public String test() {
return this.test;
}
/**
* @return Values to evaluate the condition against. If multiple values are provided, the condition matches if at least one of them applies. That is, AWS evaluates multiple values as though using an "OR" boolean operation.
*
*/
public List values() {
return this.values;
}
/**
* @return Name of a [Context Variable](http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#AvailableKeys) to apply the condition to. Context variables may either be standard AWS variables starting with `aws:` or service-specific variables prefixed with the service name.
*
*/
public String variable() {
return this.variable;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyDocumentStatementCondition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String test;
private List values;
private String variable;
public Builder() {}
public Builder(GetPolicyDocumentStatementCondition defaults) {
Objects.requireNonNull(defaults);
this.test = defaults.test;
this.values = defaults.values;
this.variable = defaults.variable;
}
@CustomType.Setter
public Builder test(String test) {
if (test == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentStatementCondition", "test");
}
this.test = test;
return this;
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentStatementCondition", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
@CustomType.Setter
public Builder variable(String variable) {
if (variable == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentStatementCondition", "variable");
}
this.variable = variable;
return this;
}
public GetPolicyDocumentStatementCondition build() {
final var _resultValue = new GetPolicyDocumentStatementCondition();
_resultValue.test = test;
_resultValue.values = values;
_resultValue.variable = variable;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy