alicloud.alb.LoadBalancerCommonBandwidthPackageAttachment
Explore with Pulumi AI
Provides a Alb Load Balancer Common Bandwidth Package Attachment resource.
For information about Alb Load Balancer Common Bandwidth Package Attachment and how to use it, see What is Load Balancer Common Bandwidth Package Attachment.
NOTE: Available since v1.200.0.
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,
dry_run: Optional[bool] = 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:alb: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.Alb.LoadBalancerCommonBandwidthPackageAttachment("loadBalancerCommonBandwidthPackageAttachmentResource", new()
{
BandwidthPackageId = "string",
LoadBalancerId = "string",
DryRun = false,
});
example, err := alb.NewLoadBalancerCommonBandwidthPackageAttachment(ctx, "loadBalancerCommonBandwidthPackageAttachmentResource", &alb.LoadBalancerCommonBandwidthPackageAttachmentArgs{
BandwidthPackageId: pulumi.String("string"),
LoadBalancerId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
})
var loadBalancerCommonBandwidthPackageAttachmentResource = new LoadBalancerCommonBandwidthPackageAttachment("loadBalancerCommonBandwidthPackageAttachmentResource", LoadBalancerCommonBandwidthPackageAttachmentArgs.builder()
.bandwidthPackageId("string")
.loadBalancerId("string")
.dryRun(false)
.build());
load_balancer_common_bandwidth_package_attachment_resource = alicloud.alb.LoadBalancerCommonBandwidthPackageAttachment("loadBalancerCommonBandwidthPackageAttachmentResource",
bandwidth_package_id="string",
load_balancer_id="string",
dry_run=False)
const loadBalancerCommonBandwidthPackageAttachmentResource = new alicloud.alb.LoadBalancerCommonBandwidthPackageAttachment("loadBalancerCommonBandwidthPackageAttachmentResource", {
bandwidthPackageId: "string",
loadBalancerId: "string",
dryRun: false,
});
type: alicloud:alb:LoadBalancerCommonBandwidthPackageAttachment
properties:
bandwidthPackageId: string
dryRun: false
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 - The ID of the bound shared bandwidth package.
- Load
Balancer stringId - The ID of the applied server load balancer instance.
- Dry
Run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- Bandwidth
Package stringId - The ID of the bound shared bandwidth package.
- Load
Balancer stringId - The ID of the applied server load balancer instance.
- Dry
Run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- bandwidth
Package StringId - The ID of the bound shared bandwidth package.
- load
Balancer StringId - The ID of the applied server load balancer instance.
- dry
Run Boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- bandwidth
Package stringId - The ID of the bound shared bandwidth package.
- load
Balancer stringId - The ID of the applied server load balancer instance.
- dry
Run boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- bandwidth_
package_ strid - The ID of the bound shared bandwidth package.
- load_
balancer_ strid - The ID of the applied server load balancer instance.
- dry_
run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- bandwidth
Package StringId - The ID of the bound shared bandwidth package.
- load
Balancer StringId - The ID of the applied server load balancer instance.
- dry
Run Boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancerCommonBandwidthPackageAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
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,
dry_run: Optional[bool] = 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 - The ID of the bound shared bandwidth package.
- Dry
Run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- Load
Balancer stringId - The ID of the applied server load balancer instance.
- Status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- Bandwidth
Package stringId - The ID of the bound shared bandwidth package.
- Dry
Run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- Load
Balancer stringId - The ID of the applied server load balancer instance.
- Status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- bandwidth
Package StringId - The ID of the bound shared bandwidth package.
- dry
Run Boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- load
Balancer StringId - The ID of the applied server load balancer instance.
- status String
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- bandwidth
Package stringId - The ID of the bound shared bandwidth package.
- dry
Run boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- load
Balancer stringId - The ID of the applied server load balancer instance.
- status string
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- bandwidth_
package_ strid - The ID of the bound shared bandwidth package.
- dry_
run bool - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- load_
balancer_ strid - The ID of the applied server load balancer instance.
- status str
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
- bandwidth
Package StringId - The ID of the bound shared bandwidth package.
- dry
Run Boolean - Whether to PreCheck this request only. Value:-true: sends a check request and does not bind the shared bandwidth package to the load balancing instance. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.-false (default): Sends a normal request, returns the HTTP 2xx status code after the check, and directly performs the operation.
- load
Balancer StringId - The ID of the applied server load balancer instance.
- status String
- The status of the Application Load balancing instance. Value:-Inactive: Stopped, indicating that the instance listener will no longer forward traffic.-Active: running.-Provisioning: The project is being created.-Configuring: The configuration is being changed.-CreateFailed: The instance cannot be deleted without any charge.
Import
Alb Load Balancer Common Bandwidth Package Attachment can be imported using the id, e.g.
$ pulumi import alicloud:alb/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.