com.pulumi.aws.backup.VaultPolicyArgs 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.backup;
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 VaultPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final VaultPolicyArgs Empty = new VaultPolicyArgs();
/**
* Name of the backup vault to add policy for.
*
*/
@Import(name="backupVaultName", required=true)
private Output backupVaultName;
/**
* @return Name of the backup vault to add policy for.
*
*/
public Output backupVaultName() {
return this.backupVaultName;
}
/**
* The backup vault access policy document in JSON format.
*
*/
@Import(name="policy", required=true)
private Output policy;
/**
* @return The backup vault access policy document in JSON format.
*
*/
public Output policy() {
return this.policy;
}
private VaultPolicyArgs() {}
private VaultPolicyArgs(VaultPolicyArgs $) {
this.backupVaultName = $.backupVaultName;
this.policy = $.policy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VaultPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VaultPolicyArgs $;
public Builder() {
$ = new VaultPolicyArgs();
}
public Builder(VaultPolicyArgs defaults) {
$ = new VaultPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param backupVaultName Name of the backup vault to add policy for.
*
* @return builder
*
*/
public Builder backupVaultName(Output backupVaultName) {
$.backupVaultName = backupVaultName;
return this;
}
/**
* @param backupVaultName Name of the backup vault to add policy for.
*
* @return builder
*
*/
public Builder backupVaultName(String backupVaultName) {
return backupVaultName(Output.of(backupVaultName));
}
/**
* @param policy The backup vault access policy document in JSON format.
*
* @return builder
*
*/
public Builder policy(Output policy) {
$.policy = policy;
return this;
}
/**
* @param policy The backup vault access policy document in JSON format.
*
* @return builder
*
*/
public Builder policy(String policy) {
return policy(Output.of(policy));
}
public VaultPolicyArgs build() {
if ($.backupVaultName == null) {
throw new MissingRequiredPropertyException("VaultPolicyArgs", "backupVaultName");
}
if ($.policy == null) {
throw new MissingRequiredPropertyException("VaultPolicyArgs", "policy");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy