alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment
Explore with Pulumi AI
Provides a NLB Loadbalancer Common Bandwidth Package Attachment resource.
Bandwidth Package Operation.
For information about NLB Loadbalancer Common Bandwidth Package Attachment and how to use it, see What is Loadbalancer Common Bandwidth Package Attachment.
NOTE: Available since v1.209.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.resourcemanager.getResourceGroups({});
const defaultGetZones = alicloud.nlb.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.4.0.0/24",
vpcId: defaultNetwork.id,
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
});
const default1 = new alicloud.vpc.Switch("default1", {
vswitchName: name,
cidrBlock: "10.4.1.0/24",
vpcId: defaultNetwork.id,
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[1]?.id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultLoadBalancer = new alicloud.nlb.LoadBalancer("default", {
loadBalancerName: name,
resourceGroupId: _default.then(_default => _default.ids?.[0]),
loadBalancerType: "Network",
addressType: "Internet",
addressIpVersion: "Ipv4",
vpcId: defaultNetwork.id,
tags: {
Created: "TF",
For: "example",
},
zoneMappings: [
{
vswitchId: defaultSwitch.id,
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
},
{
vswitchId: default1.id,
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[1]?.id),
},
],
});
const defaultCommonBandwithPackage = new alicloud.vpc.CommonBandwithPackage("default", {
bandwidth: "2",
internetChargeType: "PayByTraffic",
bandwidthPackageName: name,
description: name,
});
const defaultLoadbalancerCommonBandwidthPackageAttachment = new alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment("default", {
bandwidthPackageId: defaultCommonBandwithPackage.id,
loadBalancerId: defaultLoadBalancer.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.resourcemanager.get_resource_groups()
default_get_zones = alicloud.nlb.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.4.0.0/24",
vpc_id=default_network.id,
zone_id=default_get_zones.zones[0].id)
default1 = alicloud.vpc.Switch("default1",
vswitch_name=name,
cidr_block="10.4.1.0/24",
vpc_id=default_network.id,
zone_id=default_get_zones.zones[1].id)
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_load_balancer = alicloud.nlb.LoadBalancer("default",
load_balancer_name=name,
resource_group_id=default.ids[0],
load_balancer_type="Network",
address_type="Internet",
address_ip_version="Ipv4",
vpc_id=default_network.id,
tags={
"Created": "TF",
"For": "example",
},
zone_mappings=[
{
"vswitch_id": default_switch.id,
"zone_id": default_get_zones.zones[0].id,
},
{
"vswitch_id": default1.id,
"zone_id": default_get_zones.zones[1].id,
},
])
default_common_bandwith_package = alicloud.vpc.CommonBandwithPackage("default",
bandwidth="2",
internet_charge_type="PayByTraffic",
bandwidth_package_name=name,
description=name)
default_loadbalancer_common_bandwidth_package_attachment = alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment("default",
bandwidth_package_id=default_common_bandwith_package.id,
load_balancer_id=default_load_balancer.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nlb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
defaultGetZones, err := nlb.GetZones(ctx, &nlb.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
})
if err != nil {
return err
}
default1, err := vpc.NewSwitch(ctx, "default1", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.1.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(defaultGetZones.Zones[1].Id),
})
if err != nil {
return err
}
_, err = ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultLoadBalancer, err := nlb.NewLoadBalancer(ctx, "default", &nlb.LoadBalancerArgs{
LoadBalancerName: pulumi.String(name),
ResourceGroupId: pulumi.String(_default.Ids[0]),
LoadBalancerType: pulumi.String("Network"),
AddressType: pulumi.String("Internet"),
AddressIpVersion: pulumi.String("Ipv4"),
VpcId: defaultNetwork.ID(),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("example"),
},
ZoneMappings: nlb.LoadBalancerZoneMappingArray{
&nlb.LoadBalancerZoneMappingArgs{
VswitchId: defaultSwitch.ID(),
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
},
&nlb.LoadBalancerZoneMappingArgs{
VswitchId: default1.ID(),
ZoneId: pulumi.String(defaultGetZones.Zones[1].Id),
},
},
})
if err != nil {
return err
}
defaultCommonBandwithPackage, err := vpc.NewCommonBandwithPackage(ctx, "default", &vpc.CommonBandwithPackageArgs{
Bandwidth: pulumi.String("2"),
InternetChargeType: pulumi.String("PayByTraffic"),
BandwidthPackageName: pulumi.String(name),
Description: pulumi.String(name),
})
if err != nil {
return err
}
_, err = nlb.NewLoadbalancerCommonBandwidthPackageAttachment(ctx, "default", &nlb.LoadbalancerCommonBandwidthPackageAttachmentArgs{
BandwidthPackageId: defaultCommonBandwithPackage.ID(),
LoadBalancerId: defaultLoadBalancer.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultGetZones = AliCloud.Nlb.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/24",
VpcId = defaultNetwork.Id,
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
});
var default1 = new AliCloud.Vpc.Switch("default1", new()
{
VswitchName = name,
CidrBlock = "10.4.1.0/24",
VpcId = defaultNetwork.Id,
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[1]?.Id),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultLoadBalancer = new AliCloud.Nlb.LoadBalancer("default", new()
{
LoadBalancerName = name,
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
LoadBalancerType = "Network",
AddressType = "Internet",
AddressIpVersion = "Ipv4",
VpcId = defaultNetwork.Id,
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
ZoneMappings = new[]
{
new AliCloud.Nlb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = defaultSwitch.Id,
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
},
new AliCloud.Nlb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = default1.Id,
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[1]?.Id),
},
},
});
var defaultCommonBandwithPackage = new AliCloud.Vpc.CommonBandwithPackage("default", new()
{
Bandwidth = "2",
InternetChargeType = "PayByTraffic",
BandwidthPackageName = name,
Description = name,
});
var defaultLoadbalancerCommonBandwidthPackageAttachment = new AliCloud.Nlb.LoadbalancerCommonBandwidthPackageAttachment("default", new()
{
BandwidthPackageId = defaultCommonBandwithPackage.Id,
LoadBalancerId = defaultLoadBalancer.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.nlb.NlbFunctions;
import com.pulumi.alicloud.nlb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.nlb.LoadBalancer;
import com.pulumi.alicloud.nlb.LoadBalancerArgs;
import com.pulumi.alicloud.nlb.inputs.LoadBalancerZoneMappingArgs;
import com.pulumi.alicloud.vpc.CommonBandwithPackage;
import com.pulumi.alicloud.vpc.CommonBandwithPackageArgs;
import com.pulumi.alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment;
import com.pulumi.alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachmentArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = ResourcemanagerFunctions.getResourceGroups();
final var defaultGetZones = NlbFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(defaultNetwork.id())
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var default1 = new Switch("default1", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.1.0/24")
.vpcId(defaultNetwork.id())
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[1].id()))
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var defaultLoadBalancer = new LoadBalancer("defaultLoadBalancer", LoadBalancerArgs.builder()
.loadBalancerName(name)
.resourceGroupId(default_.ids()[0])
.loadBalancerType("Network")
.addressType("Internet")
.addressIpVersion("Ipv4")
.vpcId(defaultNetwork.id())
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.zoneMappings(
LoadBalancerZoneMappingArgs.builder()
.vswitchId(defaultSwitch.id())
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build(),
LoadBalancerZoneMappingArgs.builder()
.vswitchId(default1.id())
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[1].id()))
.build())
.build());
var defaultCommonBandwithPackage = new CommonBandwithPackage("defaultCommonBandwithPackage", CommonBandwithPackageArgs.builder()
.bandwidth(2)
.internetChargeType("PayByTraffic")
.bandwidthPackageName(name)
.description(name)
.build());
var defaultLoadbalancerCommonBandwidthPackageAttachment = new LoadbalancerCommonBandwidthPackageAttachment("defaultLoadbalancerCommonBandwidthPackageAttachment", LoadbalancerCommonBandwidthPackageAttachmentArgs.builder()
.bandwidthPackageId(defaultCommonBandwithPackage.id())
.loadBalancerId(defaultLoadBalancer.id())
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 10.4.0.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${defaultGetZones.zones[0].id}
default1:
type: alicloud:vpc:Switch
properties:
vswitchName: ${name}
cidrBlock: 10.4.1.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${defaultGetZones.zones[1].id}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultNetwork.id}
defaultLoadBalancer:
type: alicloud:nlb:LoadBalancer
name: default
properties:
loadBalancerName: ${name}
resourceGroupId: ${default.ids[0]}
loadBalancerType: Network
addressType: Internet
addressIpVersion: Ipv4
vpcId: ${defaultNetwork.id}
tags:
Created: TF
For: example
zoneMappings:
- vswitchId: ${defaultSwitch.id}
zoneId: ${defaultGetZones.zones[0].id}
- vswitchId: ${default1.id}
zoneId: ${defaultGetZones.zones[1].id}
defaultCommonBandwithPackage:
type: alicloud:vpc:CommonBandwithPackage
name: default
properties:
bandwidth: 2
internetChargeType: PayByTraffic
bandwidthPackageName: ${name}
description: ${name}
defaultLoadbalancerCommonBandwidthPackageAttachment:
type: alicloud:nlb:LoadbalancerCommonBandwidthPackageAttachment
name: default
properties:
bandwidthPackageId: ${defaultCommonBandwithPackage.id}
loadBalancerId: ${defaultLoadBalancer.id}
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
defaultGetZones:
fn::invoke:
Function: alicloud:nlb:getZones
Arguments: {}
Create LoadbalancerCommonBandwidthPackageAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadbalancerCommonBandwidthPackageAttachment(name: string, args: LoadbalancerCommonBandwidthPackageAttachmentArgs, opts?: CustomResourceOptions);
@overload
def LoadbalancerCommonBandwidthPackageAttachment(resource_name: str,
args: LoadbalancerCommonBandwidthPackageAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadbalancerCommonBandwidthPackageAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth_package_id: Optional[str] = None,
load_balancer_id: Optional[str] = None)
func NewLoadbalancerCommonBandwidthPackageAttachment(ctx *Context, name string, args LoadbalancerCommonBandwidthPackageAttachmentArgs, opts ...ResourceOption) (*LoadbalancerCommonBandwidthPackageAttachment, error)
public LoadbalancerCommonBandwidthPackageAttachment(string name, LoadbalancerCommonBandwidthPackageAttachmentArgs args, CustomResourceOptions? opts = null)
public LoadbalancerCommonBandwidthPackageAttachment(String name, LoadbalancerCommonBandwidthPackageAttachmentArgs args)
public LoadbalancerCommonBandwidthPackageAttachment(String name, LoadbalancerCommonBandwidthPackageAttachmentArgs args, CustomResourceOptions options)
type: alicloud:nlb:LoadbalancerCommonBandwidthPackageAttachment
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 LoadbalancerCommonBandwidthPackageAttachmentArgs
- 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 LoadbalancerCommonBandwidthPackageAttachmentArgs
- 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 LoadbalancerCommonBandwidthPackageAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadbalancerCommonBandwidthPackageAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadbalancerCommonBandwidthPackageAttachmentArgs
- 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 loadbalancerCommonBandwidthPackageAttachmentResource = new AliCloud.Nlb.LoadbalancerCommonBandwidthPackageAttachment("loadbalancerCommonBandwidthPackageAttachmentResource", new()
{
BandwidthPackageId = "string",
LoadBalancerId = "string",
});
example, err := nlb.NewLoadbalancerCommonBandwidthPackageAttachment(ctx, "loadbalancerCommonBandwidthPackageAttachmentResource", &nlb.LoadbalancerCommonBandwidthPackageAttachmentArgs{
BandwidthPackageId: pulumi.String("string"),
LoadBalancerId: pulumi.String("string"),
})
var loadbalancerCommonBandwidthPackageAttachmentResource = new LoadbalancerCommonBandwidthPackageAttachment("loadbalancerCommonBandwidthPackageAttachmentResource", LoadbalancerCommonBandwidthPackageAttachmentArgs.builder()
.bandwidthPackageId("string")
.loadBalancerId("string")
.build());
loadbalancer_common_bandwidth_package_attachment_resource = alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment("loadbalancerCommonBandwidthPackageAttachmentResource",
bandwidth_package_id="string",
load_balancer_id="string")
const loadbalancerCommonBandwidthPackageAttachmentResource = new alicloud.nlb.LoadbalancerCommonBandwidthPackageAttachment("loadbalancerCommonBandwidthPackageAttachmentResource", {
bandwidthPackageId: "string",
loadBalancerId: "string",
});
type: alicloud:nlb:LoadbalancerCommonBandwidthPackageAttachment
properties:
bandwidthPackageId: string
loadBalancerId: string
LoadbalancerCommonBandwidthPackageAttachment 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 LoadbalancerCommonBandwidthPackageAttachment resource accepts the following input properties:
- Bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- Load
Balancer stringId - The ID of the EIP bandwidth plan.
- Bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- Load
Balancer stringId - The ID of the EIP bandwidth plan.
- bandwidth
Package StringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer StringId - The ID of the EIP bandwidth plan.
- bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer stringId - The ID of the EIP bandwidth plan.
- bandwidth_
package_ strid - Specifies whether only to precheck the request. Valid values:
- load_
balancer_ strid - The ID of the EIP bandwidth plan.
- bandwidth
Package StringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer StringId - The ID of the EIP bandwidth plan.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadbalancerCommonBandwidthPackageAttachment resource produces the following output properties:
Look up Existing LoadbalancerCommonBandwidthPackageAttachment Resource
Get an existing LoadbalancerCommonBandwidthPackageAttachment 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?: LoadbalancerCommonBandwidthPackageAttachmentState, opts?: CustomResourceOptions): LoadbalancerCommonBandwidthPackageAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth_package_id: Optional[str] = None,
load_balancer_id: Optional[str] = None,
status: Optional[str] = None) -> LoadbalancerCommonBandwidthPackageAttachment
func GetLoadbalancerCommonBandwidthPackageAttachment(ctx *Context, name string, id IDInput, state *LoadbalancerCommonBandwidthPackageAttachmentState, opts ...ResourceOption) (*LoadbalancerCommonBandwidthPackageAttachment, error)
public static LoadbalancerCommonBandwidthPackageAttachment Get(string name, Input<string> id, LoadbalancerCommonBandwidthPackageAttachmentState? state, CustomResourceOptions? opts = null)
public static LoadbalancerCommonBandwidthPackageAttachment get(String name, Output<String> id, LoadbalancerCommonBandwidthPackageAttachmentState 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.
- Bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- Load
Balancer stringId - The ID of the EIP bandwidth plan.
- Status string
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
- Bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- Load
Balancer stringId - The ID of the EIP bandwidth plan.
- Status string
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
- bandwidth
Package StringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer StringId - The ID of the EIP bandwidth plan.
- status String
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
- bandwidth
Package stringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer stringId - The ID of the EIP bandwidth plan.
- status string
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
- bandwidth_
package_ strid - Specifies whether only to precheck the request. Valid values:
- load_
balancer_ strid - The ID of the EIP bandwidth plan.
- status str
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
- bandwidth
Package StringId - Specifies whether only to precheck the request. Valid values:
- load
Balancer StringId - The ID of the EIP bandwidth plan.
- status String
- Network-based load balancing instance status. Value:, indicating that the instance listener will no longer forward traffic.
Import
NLB Loadbalancer Common Bandwidth Package Attachment can be imported using the id, e.g.
$ pulumi import alicloud:nlb/loadbalancerCommonBandwidthPackageAttachment:LoadbalancerCommonBandwidthPackageAttachment example <load_balancer_id>:<bandwidth_package_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.