alicloud.eipanycast.AnycastEipAddress
Explore with Pulumi AI
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:
- Service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- Anycast
Eip stringAddress Name 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.
- Internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- Payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.
- Service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- Anycast
Eip stringAddress Name 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.
- Internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- Payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.
- service
Location String Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- anycast
Eip StringAddress Name 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.
- internet
Charge StringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type String The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.
- service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- anycast
Eip stringAddress Name 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.
- internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.
- service_
location str Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- anycast_
eip_ straddress_ name 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_ strtype 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 isPayAsYouGo
.
- service
Location String Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- anycast
Eip StringAddress Name 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.
- internet
Charge StringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type String The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AnycastEipAddress resource produces the following output properties:
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.
- Anycast
Eip stringAddress Name 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.
- Internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- Payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.- Service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- Status string
The IP status.
- Anycast
Eip stringAddress Name 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.
- Internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- Payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.- Service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- Status string
The IP status.
- anycast
Eip StringAddress Name 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.
- internet
Charge StringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type String The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.- service
Location String Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- status String
The IP status.
- anycast
Eip stringAddress Name 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.
- internet
Charge stringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type string The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.- service
Location string Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- status string
The IP status.
- anycast_
eip_ straddress_ name 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_ strtype 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 isPayAsYouGo
.- service_
location str Anycast EIP instance access area.
international
: Refers to areas outside of Mainland China.- status str
The IP status.
- anycast
Eip StringAddress Name 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.
- internet
Charge StringType The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. Valid value:PayByBandwidth
.- payment
Type String The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Valid value:PayAsYouGo
. Default value isPayAsYouGo
.- service
Location 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.