flexibleengine.VpcEipV1
Explore with Pulumi AI
Create VpcEipV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEipV1(name: string, args: VpcEipV1Args, opts?: CustomResourceOptions);
@overload
def VpcEipV1(resource_name: str,
args: VpcEipV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEipV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[VpcEipV1BandwidthArgs] = None,
publicip: Optional[VpcEipV1PublicipArgs] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcEipV1TimeoutsArgs] = None,
vpc_eip_v1_id: Optional[str] = None)
func NewVpcEipV1(ctx *Context, name string, args VpcEipV1Args, opts ...ResourceOption) (*VpcEipV1, error)
public VpcEipV1(string name, VpcEipV1Args args, CustomResourceOptions? opts = null)
public VpcEipV1(String name, VpcEipV1Args args)
public VpcEipV1(String name, VpcEipV1Args args, CustomResourceOptions options)
type: flexibleengine:VpcEipV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcEipV1Args
- 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 VpcEipV1Args
- 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 VpcEipV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEipV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEipV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcEipV1Resource = new Flexibleengine.VpcEipV1("vpcEipV1Resource", new()
{
Bandwidth = new Flexibleengine.Inputs.VpcEipV1BandwidthArgs
{
Name = "string",
ShareType = "string",
Size = 0,
ChargeMode = "string",
},
Publicip = new Flexibleengine.Inputs.VpcEipV1PublicipArgs
{
Type = "string",
IpAddress = "string",
PortId = "string",
},
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.VpcEipV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VpcEipV1Id = "string",
});
example, err := flexibleengine.NewVpcEipV1(ctx, "vpcEipV1Resource", &flexibleengine.VpcEipV1Args{
Bandwidth: &flexibleengine.VpcEipV1BandwidthArgs{
Name: pulumi.String("string"),
ShareType: pulumi.String("string"),
Size: pulumi.Float64(0),
ChargeMode: pulumi.String("string"),
},
Publicip: &flexibleengine.VpcEipV1PublicipArgs{
Type: pulumi.String("string"),
IpAddress: pulumi.String("string"),
PortId: pulumi.String("string"),
},
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.VpcEipV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VpcEipV1Id: pulumi.String("string"),
})
var vpcEipV1Resource = new VpcEipV1("vpcEipV1Resource", VpcEipV1Args.builder()
.bandwidth(VpcEipV1BandwidthArgs.builder()
.name("string")
.shareType("string")
.size(0)
.chargeMode("string")
.build())
.publicip(VpcEipV1PublicipArgs.builder()
.type("string")
.ipAddress("string")
.portId("string")
.build())
.region("string")
.tags(Map.of("string", "string"))
.timeouts(VpcEipV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vpcEipV1Id("string")
.build());
vpc_eip_v1_resource = flexibleengine.VpcEipV1("vpcEipV1Resource",
bandwidth={
"name": "string",
"share_type": "string",
"size": 0,
"charge_mode": "string",
},
publicip={
"type": "string",
"ip_address": "string",
"port_id": "string",
},
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
vpc_eip_v1_id="string")
const vpcEipV1Resource = new flexibleengine.VpcEipV1("vpcEipV1Resource", {
bandwidth: {
name: "string",
shareType: "string",
size: 0,
chargeMode: "string",
},
publicip: {
type: "string",
ipAddress: "string",
portId: "string",
},
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
vpcEipV1Id: "string",
});
type: flexibleengine:VpcEipV1
properties:
bandwidth:
chargeMode: string
name: string
shareType: string
size: 0
publicip:
ipAddress: string
portId: string
type: string
region: string
tags:
string: string
timeouts:
create: string
delete: string
vpcEipV1Id: string
VpcEipV1 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcEipV1 resource accepts the following input properties:
- Bandwidth
Vpc
Eip V1Bandwidth - Publicip
Vpc
Eip V1Publicip - Region string
- Dictionary<string, string>
- Timeouts
Vpc
Eip V1Timeouts - Vpc
Eip stringV1Id
- Bandwidth
Vpc
Eip V1Bandwidth Args - Publicip
Vpc
Eip V1Publicip Args - Region string
- map[string]string
- Timeouts
Vpc
Eip V1Timeouts Args - Vpc
Eip stringV1Id
- bandwidth
Vpc
Eip V1Bandwidth - publicip
Vpc
Eip V1Publicip - region String
- Map<String,String>
- timeouts
Vpc
Eip V1Timeouts - vpc
Eip StringV1Id
- bandwidth
Vpc
Eip V1Bandwidth - publicip
Vpc
Eip V1Publicip - region string
- {[key: string]: string}
- timeouts
Vpc
Eip V1Timeouts - vpc
Eip stringV1Id
- bandwidth
Vpc
Eip V1Bandwidth Args - publicip
Vpc
Eip V1Publicip Args - region str
- Mapping[str, str]
- timeouts
Vpc
Eip V1Timeouts Args - vpc_
eip_ strv1_ id
- bandwidth Property Map
- publicip Property Map
- region String
- Map<String>
- timeouts Property Map
- vpc
Eip StringV1Id
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEipV1 resource produces the following output properties:
Look up Existing VpcEipV1 Resource
Get an existing VpcEipV1 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?: VpcEipV1State, opts?: CustomResourceOptions): VpcEipV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
bandwidth: Optional[VpcEipV1BandwidthArgs] = None,
publicip: Optional[VpcEipV1PublicipArgs] = None,
region: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcEipV1TimeoutsArgs] = None,
vpc_eip_v1_id: Optional[str] = None) -> VpcEipV1
func GetVpcEipV1(ctx *Context, name string, id IDInput, state *VpcEipV1State, opts ...ResourceOption) (*VpcEipV1, error)
public static VpcEipV1 Get(string name, Input<string> id, VpcEipV1State? state, CustomResourceOptions? opts = null)
public static VpcEipV1 get(String name, Output<String> id, VpcEipV1State state, CustomResourceOptions options)
resources: _: type: flexibleengine:VpcEipV1 get: id: ${id}
- 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.
- Address string
- Bandwidth
Vpc
Eip V1Bandwidth - Publicip
Vpc
Eip V1Publicip - Region string
- Status string
- Dictionary<string, string>
- Timeouts
Vpc
Eip V1Timeouts - Vpc
Eip stringV1Id
- Address string
- Bandwidth
Vpc
Eip V1Bandwidth Args - Publicip
Vpc
Eip V1Publicip Args - Region string
- Status string
- map[string]string
- Timeouts
Vpc
Eip V1Timeouts Args - Vpc
Eip stringV1Id
- address String
- bandwidth
Vpc
Eip V1Bandwidth - publicip
Vpc
Eip V1Publicip - region String
- status String
- Map<String,String>
- timeouts
Vpc
Eip V1Timeouts - vpc
Eip StringV1Id
- address string
- bandwidth
Vpc
Eip V1Bandwidth - publicip
Vpc
Eip V1Publicip - region string
- status string
- {[key: string]: string}
- timeouts
Vpc
Eip V1Timeouts - vpc
Eip stringV1Id
- address str
- bandwidth
Vpc
Eip V1Bandwidth Args - publicip
Vpc
Eip V1Publicip Args - region str
- status str
- Mapping[str, str]
- timeouts
Vpc
Eip V1Timeouts Args - vpc_
eip_ strv1_ id
- address String
- bandwidth Property Map
- publicip Property Map
- region String
- status String
- Map<String>
- timeouts Property Map
- vpc
Eip StringV1Id
Supporting Types
VpcEipV1Bandwidth, VpcEipV1BandwidthArgs
- Name string
- string
- Size double
- Charge
Mode string
- Name string
- string
- Size float64
- Charge
Mode string
- name String
- String
- size Double
- charge
Mode String
- name string
- string
- size number
- charge
Mode string
- name str
- str
- size float
- charge_
mode str
- name String
- String
- size Number
- charge
Mode String
VpcEipV1Publicip, VpcEipV1PublicipArgs
- type str
- ip_
address str - port_
id str
VpcEipV1Timeouts, VpcEipV1TimeoutsArgs
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.