com.pulumi.aws.acmpca.PolicyArgs 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.acmpca;
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 PolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final PolicyArgs Empty = new PolicyArgs();
/**
* JSON-formatted IAM policy to attach to the specified private CA resource.
*
*/
@Import(name="policy", required=true)
private Output policy;
/**
* @return JSON-formatted IAM policy to attach to the specified private CA resource.
*
*/
public Output policy() {
return this.policy;
}
/**
* ARN of the private CA to associate with the policy.
*
*/
@Import(name="resourceArn", required=true)
private Output resourceArn;
/**
* @return ARN of the private CA to associate with the policy.
*
*/
public Output resourceArn() {
return this.resourceArn;
}
private PolicyArgs() {}
private PolicyArgs(PolicyArgs $) {
this.policy = $.policy;
this.resourceArn = $.resourceArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private PolicyArgs $;
public Builder() {
$ = new PolicyArgs();
}
public Builder(PolicyArgs defaults) {
$ = new PolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param policy JSON-formatted IAM policy to attach to the specified private CA resource.
*
* @return builder
*
*/
public Builder policy(Output policy) {
$.policy = policy;
return this;
}
/**
* @param policy JSON-formatted IAM policy to attach to the specified private CA resource.
*
* @return builder
*
*/
public Builder policy(String policy) {
return policy(Output.of(policy));
}
/**
* @param resourceArn ARN of the private CA to associate with the policy.
*
* @return builder
*
*/
public Builder resourceArn(Output resourceArn) {
$.resourceArn = resourceArn;
return this;
}
/**
* @param resourceArn ARN of the private CA to associate with the policy.
*
* @return builder
*
*/
public Builder resourceArn(String resourceArn) {
return resourceArn(Output.of(resourceArn));
}
public PolicyArgs build() {
if ($.policy == null) {
throw new MissingRequiredPropertyException("PolicyArgs", "policy");
}
if ($.resourceArn == null) {
throw new MissingRequiredPropertyException("PolicyArgs", "resourceArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy