com.pulumi.aws.vpclattice.inputs.GetResourcePolicyPlainArgs 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.vpclattice.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetResourcePolicyPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetResourcePolicyPlainArgs Empty = new GetResourcePolicyPlainArgs();
/**
* Resource ARN of the resource for which a policy is retrieved.
*
*/
@Import(name="resourceArn", required=true)
private String resourceArn;
/**
* @return Resource ARN of the resource for which a policy is retrieved.
*
*/
public String resourceArn() {
return this.resourceArn;
}
private GetResourcePolicyPlainArgs() {}
private GetResourcePolicyPlainArgs(GetResourcePolicyPlainArgs $) {
this.resourceArn = $.resourceArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResourcePolicyPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetResourcePolicyPlainArgs $;
public Builder() {
$ = new GetResourcePolicyPlainArgs();
}
public Builder(GetResourcePolicyPlainArgs defaults) {
$ = new GetResourcePolicyPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param resourceArn Resource ARN of the resource for which a policy is retrieved.
*
* @return builder
*
*/
public Builder resourceArn(String resourceArn) {
$.resourceArn = resourceArn;
return this;
}
public GetResourcePolicyPlainArgs build() {
if ($.resourceArn == null) {
throw new MissingRequiredPropertyException("GetResourcePolicyPlainArgs", "resourceArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy