All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.schemas.RegistryPolicyArgs Maven / Gradle / Ivy

Go to download

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.schemas;

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 RegistryPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegistryPolicyArgs Empty = new RegistryPolicyArgs();

    /**
     * Resource Policy for EventBridge Schema Registry
     * 
     */
    @Import(name="policy", required=true)
    private Output policy;

    /**
     * @return Resource Policy for EventBridge Schema Registry
     * 
     */
    public Output policy() {
        return this.policy;
    }

    /**
     * Name of EventBridge Schema Registry
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return Name of EventBridge Schema Registry
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    private RegistryPolicyArgs() {}

    private RegistryPolicyArgs(RegistryPolicyArgs $) {
        this.policy = $.policy;
        this.registryName = $.registryName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(RegistryPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private RegistryPolicyArgs $;

        public Builder() {
            $ = new RegistryPolicyArgs();
        }

        public Builder(RegistryPolicyArgs defaults) {
            $ = new RegistryPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param policy Resource Policy for EventBridge Schema Registry
         * 
         * @return builder
         * 
         */
        public Builder policy(Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy Resource Policy for EventBridge Schema Registry
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param registryName Name of EventBridge Schema Registry
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName Name of EventBridge Schema Registry
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        public RegistryPolicyArgs build() {
            if ($.policy == null) {
                throw new MissingRequiredPropertyException("RegistryPolicyArgs", "policy");
            }
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("RegistryPolicyArgs", "registryName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy