
com.pulumi.aws.iam.outputs.GetPolicyDocumentStatementNotPrincipal Maven / Gradle / Ivy
// *** 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 GetPolicyDocumentStatementNotPrincipal {
/**
* @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`.
*
*/
private List identifiers;
/**
* @return Type of principal. Valid values include `AWS`, `Service`, `Federated`, `CanonicalUser` and `*`.
*
*/
private String type;
private GetPolicyDocumentStatementNotPrincipal() {}
/**
* @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`.
*
*/
public List identifiers() {
return this.identifiers;
}
/**
* @return Type of principal. Valid values include `AWS`, `Service`, `Federated`, `CanonicalUser` and `*`.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyDocumentStatementNotPrincipal defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List identifiers;
private String type;
public Builder() {}
public Builder(GetPolicyDocumentStatementNotPrincipal defaults) {
Objects.requireNonNull(defaults);
this.identifiers = defaults.identifiers;
this.type = defaults.type;
}
@CustomType.Setter
public Builder identifiers(List identifiers) {
if (identifiers == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentStatementNotPrincipal", "identifiers");
}
this.identifiers = identifiers;
return this;
}
public Builder identifiers(String... identifiers) {
return identifiers(List.of(identifiers));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentStatementNotPrincipal", "type");
}
this.type = type;
return this;
}
public GetPolicyDocumentStatementNotPrincipal build() {
final var _resultValue = new GetPolicyDocumentStatementNotPrincipal();
_resultValue.identifiers = identifiers;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy