1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. VpcEipV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.VpcEipV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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:

    Outputs

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

    Address string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Address string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    address String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    address string
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    address str
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    address String
    id String
    The provider-assigned unique ID for this managed resource.
    status String

    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.
    The following state arguments are supported:

    Supporting Types

    VpcEipV1Bandwidth, VpcEipV1BandwidthArgs

    Name string
    ShareType string
    Size double
    ChargeMode string
    Name string
    ShareType string
    Size float64
    ChargeMode string
    name String
    shareType String
    size Double
    chargeMode String
    name string
    shareType string
    size number
    chargeMode string
    name String
    shareType String
    size Number
    chargeMode String

    VpcEipV1Publicip, VpcEipV1PublicipArgs

    Type string
    IpAddress string
    PortId string
    Type string
    IpAddress string
    PortId string
    type String
    ipAddress String
    portId String
    type string
    ipAddress string
    portId string
    type String
    ipAddress String
    portId String

    VpcEipV1Timeouts, VpcEipV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud