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

com.pulumi.alicloud.ddos.BgpIp Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ddos;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.ddos.BgpIpArgs;
import com.pulumi.alicloud.ddos.inputs.BgpIpState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a Ddos Bgp Ip resource.
 * 
 * For information about Ddos Bgp Ip and how to use it, see [What is Ip](https://www.alibabacloud.com/help/en/ddos-protection/latest/addip).
 * 
 * > **NOTE:** Available since v1.180.0.
 * 
 * ## Example Usage
 * 
 * Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * <!--End PulumiCodeChooser -->
 * 
 * ## Import
 * 
 * Ddos Bgp Ip can be imported using the id, e.g.
 * 
 * ```sh
 * $ pulumi import alicloud:ddos/bgpIp:BgpIp example <instance_id>:<ip>
 * ```
 * 
 */
@ResourceType(type="alicloud:ddos/bgpIp:BgpIp")
public class BgpIp extends com.pulumi.resources.CustomResource {
    /**
     * The ID of the native protection enterprise instance to be operated.
     * 
     */
    @Export(name="instanceId", refs={String.class}, tree="[0]")
    private Output instanceId;

    /**
     * @return The ID of the native protection enterprise instance to be operated.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }
    /**
     * The IP address.
     * 
     */
    @Export(name="ip", refs={String.class}, tree="[0]")
    private Output ip;

    /**
     * @return The IP address.
     * 
     */
    public Output ip() {
        return this.ip;
    }
    /**
     * The member account id of the IP address.
     * 
     */
    @Export(name="memberUid", refs={String.class}, tree="[0]")
    private Output memberUid;

    /**
     * @return The member account id of the IP address.
     * 
     */
    public Output> memberUid() {
        return Codegen.optional(this.memberUid);
    }
    /**
     * The ID of the resource group.
     * 
     */
    @Export(name="resourceGroupId", refs={String.class}, tree="[0]")
    private Output resourceGroupId;

    /**
     * @return The ID of the resource group.
     * 
     */
    public Output> resourceGroupId() {
        return Codegen.optional(this.resourceGroupId);
    }
    /**
     * The current state of the IP address. Valid Value: `normal`, `hole_begin`.
     * 
     */
    @Export(name="status", refs={String.class}, tree="[0]")
    private Output status;

    /**
     * @return The current state of the IP address. Valid Value: `normal`, `hole_begin`.
     * 
     */
    public Output status() {
        return this.status;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public BgpIp(java.lang.String name) {
        this(name, BgpIpArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public BgpIp(java.lang.String name, BgpIpArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public BgpIp(java.lang.String name, BgpIpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:ddos/bgpIp:BgpIp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private BgpIp(java.lang.String name, Output id, @Nullable BgpIpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:ddos/bgpIp:BgpIp", name, state, makeResourceOptions(options, id), false);
    }

    private static BgpIpArgs makeArgs(BgpIpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? BgpIpArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static BgpIp get(java.lang.String name, Output id, @Nullable BgpIpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new BgpIp(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy