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

com.pulumi.aws.s3control.inputs.AccessGrantsInstanceResourcePolicyState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show 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.s3control.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AccessGrantsInstanceResourcePolicyState extends com.pulumi.resources.ResourceArgs {

    public static final AccessGrantsInstanceResourcePolicyState Empty = new AccessGrantsInstanceResourcePolicyState();

    @Import(name="accountId")
    private @Nullable Output accountId;

    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * The policy document.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return The policy document.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    private AccessGrantsInstanceResourcePolicyState() {}

    private AccessGrantsInstanceResourcePolicyState(AccessGrantsInstanceResourcePolicyState $) {
        this.accountId = $.accountId;
        this.policy = $.policy;
    }

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

    public static final class Builder {
        private AccessGrantsInstanceResourcePolicyState $;

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

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

        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param policy The policy document.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The policy document.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        public AccessGrantsInstanceResourcePolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy