
com.pulumi.aws.iam.inputs.GetPolicyDocumentPlainArgs 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.inputs;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentStatement;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetPolicyDocumentPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetPolicyDocumentPlainArgs Empty = new GetPolicyDocumentPlainArgs();
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
@Import(name="overrideJson")
private @Nullable String overrideJson;
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Optional overrideJson() {
return Optional.ofNullable(this.overrideJson);
}
/**
* List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid` from earlier documents in the list. Statements with non-blank `sid`s will also override statements with the same `sid` from `source_policy_documents`. Non-overriding statements will be added to the exported document.
*
*/
@Import(name="overridePolicyDocuments")
private @Nullable List overridePolicyDocuments;
/**
* @return List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid` from earlier documents in the list. Statements with non-blank `sid`s will also override statements with the same `sid` from `source_policy_documents`. Non-overriding statements will be added to the exported document.
*
*/
public Optional> overridePolicyDocuments() {
return Optional.ofNullable(this.overridePolicyDocuments);
}
/**
* ID for the policy document.
*
*/
@Import(name="policyId")
private @Nullable String policyId;
/**
* @return ID for the policy document.
*
*/
public Optional policyId() {
return Optional.ofNullable(this.policyId);
}
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
@Import(name="sourceJson")
private @Nullable String sourceJson;
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Optional sourceJson() {
return Optional.ofNullable(this.sourceJson);
}
/**
* List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` must have unique `sid`s. Statements with the same `sid` from `override_policy_documents` will override source statements.
*
*/
@Import(name="sourcePolicyDocuments")
private @Nullable List sourcePolicyDocuments;
/**
* @return List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` must have unique `sid`s. Statements with the same `sid` from `override_policy_documents` will override source statements.
*
*/
public Optional> sourcePolicyDocuments() {
return Optional.ofNullable(this.sourcePolicyDocuments);
}
/**
* Configuration block for a policy statement. Detailed below.
*
*/
@Import(name="statements")
private @Nullable List statements;
/**
* @return Configuration block for a policy statement. Detailed below.
*
*/
public Optional> statements() {
return Optional.ofNullable(this.statements);
}
/**
* IAM policy document version. Valid values are `2008-10-17` and `2012-10-17`. Defaults to `2012-10-17`. For more information, see the [AWS IAM User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html).
*
*/
@Import(name="version")
private @Nullable String version;
/**
* @return IAM policy document version. Valid values are `2008-10-17` and `2012-10-17`. Defaults to `2012-10-17`. For more information, see the [AWS IAM User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html).
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
private GetPolicyDocumentPlainArgs() {}
private GetPolicyDocumentPlainArgs(GetPolicyDocumentPlainArgs $) {
this.overrideJson = $.overrideJson;
this.overridePolicyDocuments = $.overridePolicyDocuments;
this.policyId = $.policyId;
this.sourceJson = $.sourceJson;
this.sourcePolicyDocuments = $.sourcePolicyDocuments;
this.statements = $.statements;
this.version = $.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyDocumentPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetPolicyDocumentPlainArgs $;
public Builder() {
$ = new GetPolicyDocumentPlainArgs();
}
public Builder(GetPolicyDocumentPlainArgs defaults) {
$ = new GetPolicyDocumentPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @return builder
*
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Builder overrideJson(@Nullable String overrideJson) {
$.overrideJson = overrideJson;
return this;
}
/**
* @param overridePolicyDocuments List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid` from earlier documents in the list. Statements with non-blank `sid`s will also override statements with the same `sid` from `source_policy_documents`. Non-overriding statements will be added to the exported document.
*
* @return builder
*
*/
public Builder overridePolicyDocuments(@Nullable List overridePolicyDocuments) {
$.overridePolicyDocuments = overridePolicyDocuments;
return this;
}
/**
* @param overridePolicyDocuments List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid` from earlier documents in the list. Statements with non-blank `sid`s will also override statements with the same `sid` from `source_policy_documents`. Non-overriding statements will be added to the exported document.
*
* @return builder
*
*/
public Builder overridePolicyDocuments(String... overridePolicyDocuments) {
return overridePolicyDocuments(List.of(overridePolicyDocuments));
}
/**
* @param policyId ID for the policy document.
*
* @return builder
*
*/
public Builder policyId(@Nullable String policyId) {
$.policyId = policyId;
return this;
}
/**
* @return builder
*
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Builder sourceJson(@Nullable String sourceJson) {
$.sourceJson = sourceJson;
return this;
}
/**
* @param sourcePolicyDocuments List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` must have unique `sid`s. Statements with the same `sid` from `override_policy_documents` will override source statements.
*
* @return builder
*
*/
public Builder sourcePolicyDocuments(@Nullable List sourcePolicyDocuments) {
$.sourcePolicyDocuments = sourcePolicyDocuments;
return this;
}
/**
* @param sourcePolicyDocuments List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` must have unique `sid`s. Statements with the same `sid` from `override_policy_documents` will override source statements.
*
* @return builder
*
*/
public Builder sourcePolicyDocuments(String... sourcePolicyDocuments) {
return sourcePolicyDocuments(List.of(sourcePolicyDocuments));
}
/**
* @param statements Configuration block for a policy statement. Detailed below.
*
* @return builder
*
*/
public Builder statements(@Nullable List statements) {
$.statements = statements;
return this;
}
/**
* @param statements Configuration block for a policy statement. Detailed below.
*
* @return builder
*
*/
public Builder statements(GetPolicyDocumentStatement... statements) {
return statements(List.of(statements));
}
/**
* @param version IAM policy document version. Valid values are `2008-10-17` and `2012-10-17`. Defaults to `2012-10-17`. For more information, see the [AWS IAM User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html).
*
* @return builder
*
*/
public Builder version(@Nullable String version) {
$.version = version;
return this;
}
public GetPolicyDocumentPlainArgs build() {
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy