1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eipanycast
  5. AnycastEipAddress
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.eipanycast.AnycastEipAddress

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

    Provides a Eipanycast Anycast Eip Address resource.

    For information about Eipanycast Anycast Eip Address and how to use it, see What is Anycast Eip Address.

    NOTE: Available in v1.113.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.EipAnycast.AnycastEipAddress("example", new()
        {
            ServiceLocation = "international",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eipanycast"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eipanycast.NewAnycastEipAddress(ctx, "example", &eipanycast.AnycastEipAddressArgs{
    			ServiceLocation: pulumi.String("international"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddress;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new AnycastEipAddress("example", AnycastEipAddressArgs.builder()        
                .serviceLocation("international")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.eipanycast.AnycastEipAddress("example", service_location="international")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.eipanycast.AnycastEipAddress("example", {serviceLocation: "international"});
    
    resources:
      example:
        type: alicloud:eipanycast:AnycastEipAddress
        properties:
          serviceLocation: international
    

    Create AnycastEipAddress Resource

    new AnycastEipAddress(name: string, args: AnycastEipAddressArgs, opts?: CustomResourceOptions);
    @overload
    def AnycastEipAddress(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          anycast_eip_address_name: Optional[str] = None,
                          bandwidth: Optional[int] = None,
                          description: Optional[str] = None,
                          internet_charge_type: Optional[str] = None,
                          payment_type: Optional[str] = None,
                          service_location: Optional[str] = None)
    @overload
    def AnycastEipAddress(resource_name: str,
                          args: AnycastEipAddressArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewAnycastEipAddress(ctx *Context, name string, args AnycastEipAddressArgs, opts ...ResourceOption) (*AnycastEipAddress, error)
    public AnycastEipAddress(string name, AnycastEipAddressArgs args, CustomResourceOptions? opts = null)
    public AnycastEipAddress(String name, AnycastEipAddressArgs args)
    public AnycastEipAddress(String name, AnycastEipAddressArgs args, CustomResourceOptions options)
    
    type: alicloud:eipanycast:AnycastEipAddress
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AnycastEipAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AnycastEipAddressArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AnycastEipAddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnycastEipAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnycastEipAddressArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AnycastEipAddress Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AnycastEipAddress resource accepts the following input properties:

    ServiceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    AnycastEipAddressName string

    Anycast EIP instance name.

    Bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    Description string

    Anycast EIP instance description.

    InternetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    PaymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    ServiceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    AnycastEipAddressName string

    Anycast EIP instance name.

    Bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    Description string

    Anycast EIP instance description.

    InternetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    PaymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation String

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    anycastEipAddressName String

    Anycast EIP instance name.

    bandwidth Integer

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description String

    Anycast EIP instance description.

    internetChargeType String

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType String

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    anycastEipAddressName string

    Anycast EIP instance name.

    bandwidth number

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description string

    Anycast EIP instance description.

    internetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    service_location str

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    anycast_eip_address_name str

    Anycast EIP instance name.

    bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description str

    Anycast EIP instance description.

    internet_charge_type str

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    payment_type str

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation String

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    anycastEipAddressName String

    Anycast EIP instance name.

    bandwidth Number

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description String

    Anycast EIP instance description.

    internetChargeType String

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType String

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AnycastEipAddress resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The IP status.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The IP status.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The IP status.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    The IP status.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    The IP status.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The IP status.

    Look up Existing AnycastEipAddress Resource

    Get an existing AnycastEipAddress resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AnycastEipAddressState, opts?: CustomResourceOptions): AnycastEipAddress
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            anycast_eip_address_name: Optional[str] = None,
            bandwidth: Optional[int] = None,
            description: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            payment_type: Optional[str] = None,
            service_location: Optional[str] = None,
            status: Optional[str] = None) -> AnycastEipAddress
    func GetAnycastEipAddress(ctx *Context, name string, id IDInput, state *AnycastEipAddressState, opts ...ResourceOption) (*AnycastEipAddress, error)
    public static AnycastEipAddress Get(string name, Input<string> id, AnycastEipAddressState? state, CustomResourceOptions? opts = null)
    public static AnycastEipAddress get(String name, Output<String> id, AnycastEipAddressState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AnycastEipAddressName string

    Anycast EIP instance name.

    Bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    Description string

    Anycast EIP instance description.

    InternetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    PaymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    ServiceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    Status string

    The IP status.

    AnycastEipAddressName string

    Anycast EIP instance name.

    Bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    Description string

    Anycast EIP instance description.

    InternetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    PaymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    ServiceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    Status string

    The IP status.

    anycastEipAddressName String

    Anycast EIP instance name.

    bandwidth Integer

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description String

    Anycast EIP instance description.

    internetChargeType String

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType String

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation String

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    status String

    The IP status.

    anycastEipAddressName string

    Anycast EIP instance name.

    bandwidth number

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description string

    Anycast EIP instance description.

    internetChargeType string

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType string

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation string

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    status string

    The IP status.

    anycast_eip_address_name str

    Anycast EIP instance name.

    bandwidth int

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description str

    Anycast EIP instance description.

    internet_charge_type str

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    payment_type str

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    service_location str

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    status str

    The IP status.

    anycastEipAddressName String

    Anycast EIP instance name.

    bandwidth Number

    The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is PayByBandwidth and the default value is 200.

    description String

    Anycast EIP instance description.

    internetChargeType String

    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic. Valid value: PayByBandwidth.

    paymentType String

    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Valid value: PayAsYouGo. Default value is PayAsYouGo.

    serviceLocation String

    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.

    status String

    The IP status.

    Import

    Eipanycast Anycast Eip Address can be imported using the id, e.g.

     $ pulumi import alicloud:eipanycast/anycastEipAddress:AnycastEipAddress example <id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi