com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs 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.
The newest version!
// *** 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.ecr.inputs;
import com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
public final class ReplicationConfigurationReplicationConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final ReplicationConfigurationReplicationConfigurationArgs Empty = new ReplicationConfigurationReplicationConfigurationArgs();
/**
* The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
*
*/
@Import(name="rules", required=true)
private Output> rules;
/**
* @return The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
*
*/
public Output> rules() {
return this.rules;
}
private ReplicationConfigurationReplicationConfigurationArgs() {}
private ReplicationConfigurationReplicationConfigurationArgs(ReplicationConfigurationReplicationConfigurationArgs $) {
this.rules = $.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReplicationConfigurationReplicationConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ReplicationConfigurationReplicationConfigurationArgs $;
public Builder() {
$ = new ReplicationConfigurationReplicationConfigurationArgs();
}
public Builder(ReplicationConfigurationReplicationConfigurationArgs defaults) {
$ = new ReplicationConfigurationReplicationConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param rules The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
*
* @return builder
*
*/
public Builder rules(Output> rules) {
$.rules = rules;
return this;
}
/**
* @param rules The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
*
* @return builder
*
*/
public Builder rules(List rules) {
return rules(Output.of(rules));
}
/**
* @param rules The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
*
* @return builder
*
*/
public Builder rules(ReplicationConfigurationReplicationConfigurationRuleArgs... rules) {
return rules(List.of(rules));
}
public ReplicationConfigurationReplicationConfigurationArgs build() {
if ($.rules == null) {
throw new MissingRequiredPropertyException("ReplicationConfigurationReplicationConfigurationArgs", "rules");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy