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

com.pulumi.aws.shield.inputs.GetProtectionArgs 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.60.0-alpha.1731982519
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.shield.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 GetProtectionArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetProtectionArgs Empty = new GetProtectionArgs();

    /**
     * Unique identifier for the protection.
     * 
     */
    @Import(name="protectionId")
    private @Nullable Output protectionId;

    /**
     * @return Unique identifier for the protection.
     * 
     */
    public Optional> protectionId() {
        return Optional.ofNullable(this.protectionId);
    }

    /**
     * ARN (Amazon Resource Name) of the resource being protected.
     * 
     */
    @Import(name="resourceArn")
    private @Nullable Output resourceArn;

    /**
     * @return ARN (Amazon Resource Name) of the resource being protected.
     * 
     */
    public Optional> resourceArn() {
        return Optional.ofNullable(this.resourceArn);
    }

    private GetProtectionArgs() {}

    private GetProtectionArgs(GetProtectionArgs $) {
        this.protectionId = $.protectionId;
        this.resourceArn = $.resourceArn;
    }

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

    public static final class Builder {
        private GetProtectionArgs $;

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

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

        /**
         * @param protectionId Unique identifier for the protection.
         * 
         * @return builder
         * 
         */
        public Builder protectionId(@Nullable Output protectionId) {
            $.protectionId = protectionId;
            return this;
        }

        /**
         * @param protectionId Unique identifier for the protection.
         * 
         * @return builder
         * 
         */
        public Builder protectionId(String protectionId) {
            return protectionId(Output.of(protectionId));
        }

        /**
         * @param resourceArn ARN (Amazon Resource Name) of the resource being protected.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(@Nullable Output resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn ARN (Amazon Resource Name) of the resource being protected.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

        public GetProtectionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy