com.pulumi.aws.redshift.ResourcePolicyArgs 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.redshift;
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 ResourcePolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ResourcePolicyArgs Empty = new ResourcePolicyArgs();
/**
* The content of the resource policy being updated.
*
*/
@Import(name="policy", required=true)
private Output policy;
/**
* @return The content of the resource policy being updated.
*
*/
public Output policy() {
return this.policy;
}
/**
* The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
*
*/
@Import(name="resourceArn", required=true)
private Output resourceArn;
/**
* @return The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
*
*/
public Output resourceArn() {
return this.resourceArn;
}
private ResourcePolicyArgs() {}
private ResourcePolicyArgs(ResourcePolicyArgs $) {
this.policy = $.policy;
this.resourceArn = $.resourceArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourcePolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ResourcePolicyArgs $;
public Builder() {
$ = new ResourcePolicyArgs();
}
public Builder(ResourcePolicyArgs defaults) {
$ = new ResourcePolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param policy The content of the resource policy being updated.
*
* @return builder
*
*/
public Builder policy(Output policy) {
$.policy = policy;
return this;
}
/**
* @param policy The content of the resource policy being updated.
*
* @return builder
*
*/
public Builder policy(String policy) {
return policy(Output.of(policy));
}
/**
* @param resourceArn The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
*
* @return builder
*
*/
public Builder resourceArn(Output resourceArn) {
$.resourceArn = resourceArn;
return this;
}
/**
* @param resourceArn The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
*
* @return builder
*
*/
public Builder resourceArn(String resourceArn) {
return resourceArn(Output.of(resourceArn));
}
public ResourcePolicyArgs build() {
if ($.policy == null) {
throw new MissingRequiredPropertyException("ResourcePolicyArgs", "policy");
}
if ($.resourceArn == null) {
throw new MissingRequiredPropertyException("ResourcePolicyArgs", "resourceArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy