1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alb
  5. LoadBalancerZoneShiftedAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.alb.LoadBalancerZoneShiftedAttachment

Explore with Pulumi AI

Provides a Application Load Balancer (ALB) Load Balancer Zone Shifted Attachment resource.

Application load balancer start-stop zone.

For information about Application Load Balancer (ALB) Load Balancer Zone Shifted Attachment and how to use it, see What is Load Balancer Zone Shifted Attachment.

NOTE: Available since v1.242.0.

Create LoadBalancerZoneShiftedAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LoadBalancerZoneShiftedAttachment(name: string, args: LoadBalancerZoneShiftedAttachmentArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancerZoneShiftedAttachment(resource_name: str,
                                      args: LoadBalancerZoneShiftedAttachmentArgs,
                                      opts: Optional[ResourceOptions] = None)

@overload
def LoadBalancerZoneShiftedAttachment(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      load_balancer_id: Optional[str] = None,
                                      vswitch_id: Optional[str] = None,
                                      zone_id: Optional[str] = None)
func NewLoadBalancerZoneShiftedAttachment(ctx *Context, name string, args LoadBalancerZoneShiftedAttachmentArgs, opts ...ResourceOption) (*LoadBalancerZoneShiftedAttachment, error)
public LoadBalancerZoneShiftedAttachment(string name, LoadBalancerZoneShiftedAttachmentArgs args, CustomResourceOptions? opts = null)
public LoadBalancerZoneShiftedAttachment(String name, LoadBalancerZoneShiftedAttachmentArgs args)
public LoadBalancerZoneShiftedAttachment(String name, LoadBalancerZoneShiftedAttachmentArgs args, CustomResourceOptions options)
type: alicloud:alb:LoadBalancerZoneShiftedAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerZoneShiftedAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LoadBalancerZoneShiftedAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerZoneShiftedAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerZoneShiftedAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LoadBalancerZoneShiftedAttachmentArgs
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 loadBalancerZoneShiftedAttachmentResource = new AliCloud.Alb.LoadBalancerZoneShiftedAttachment("loadBalancerZoneShiftedAttachmentResource", new()
{
    LoadBalancerId = "string",
    VswitchId = "string",
    ZoneId = "string",
});
Copy
example, err := alb.NewLoadBalancerZoneShiftedAttachment(ctx, "loadBalancerZoneShiftedAttachmentResource", &alb.LoadBalancerZoneShiftedAttachmentArgs{
	LoadBalancerId: pulumi.String("string"),
	VswitchId:      pulumi.String("string"),
	ZoneId:         pulumi.String("string"),
})
Copy
var loadBalancerZoneShiftedAttachmentResource = new LoadBalancerZoneShiftedAttachment("loadBalancerZoneShiftedAttachmentResource", LoadBalancerZoneShiftedAttachmentArgs.builder()
    .loadBalancerId("string")
    .vswitchId("string")
    .zoneId("string")
    .build());
Copy
load_balancer_zone_shifted_attachment_resource = alicloud.alb.LoadBalancerZoneShiftedAttachment("loadBalancerZoneShiftedAttachmentResource",
    load_balancer_id="string",
    vswitch_id="string",
    zone_id="string")
Copy
const loadBalancerZoneShiftedAttachmentResource = new alicloud.alb.LoadBalancerZoneShiftedAttachment("loadBalancerZoneShiftedAttachmentResource", {
    loadBalancerId: "string",
    vswitchId: "string",
    zoneId: "string",
});
Copy
type: alicloud:alb:LoadBalancerZoneShiftedAttachment
properties:
    loadBalancerId: string
    vswitchId: string
    zoneId: string
Copy

LoadBalancerZoneShiftedAttachment 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 LoadBalancerZoneShiftedAttachment resource accepts the following input properties:

LoadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone.
LoadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the load balancing instance.
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the zone.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
vswitchId
This property is required.
Changes to this property will trigger replacement.
string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone.
load_balancer_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the load balancing instance.
vswitch_id
This property is required.
Changes to this property will trigger replacement.
str
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zone_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the zone.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the load balancing instance.
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the zone.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
Availability zone status. Value:
Id string
The provider-assigned unique ID for this managed resource.
Status string
Availability zone status. Value:
id String
The provider-assigned unique ID for this managed resource.
status String
Availability zone status. Value:
id string
The provider-assigned unique ID for this managed resource.
status string
Availability zone status. Value:
id str
The provider-assigned unique ID for this managed resource.
status str
Availability zone status. Value:
id String
The provider-assigned unique ID for this managed resource.
status String
Availability zone status. Value:

Look up Existing LoadBalancerZoneShiftedAttachment Resource

Get an existing LoadBalancerZoneShiftedAttachment 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?: LoadBalancerZoneShiftedAttachmentState, opts?: CustomResourceOptions): LoadBalancerZoneShiftedAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        load_balancer_id: Optional[str] = None,
        status: Optional[str] = None,
        vswitch_id: Optional[str] = None,
        zone_id: Optional[str] = None) -> LoadBalancerZoneShiftedAttachment
func GetLoadBalancerZoneShiftedAttachment(ctx *Context, name string, id IDInput, state *LoadBalancerZoneShiftedAttachmentState, opts ...ResourceOption) (*LoadBalancerZoneShiftedAttachment, error)
public static LoadBalancerZoneShiftedAttachment Get(string name, Input<string> id, LoadBalancerZoneShiftedAttachmentState? state, CustomResourceOptions? opts = null)
public static LoadBalancerZoneShiftedAttachment get(String name, Output<String> id, LoadBalancerZoneShiftedAttachmentState state, CustomResourceOptions options)
resources:  _:    type: alicloud:alb:LoadBalancerZoneShiftedAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
LoadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
Status string
Availability zone status. Value:
VswitchId Changes to this property will trigger replacement. string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
ZoneId Changes to this property will trigger replacement. string
The ID of the zone.
LoadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
Status string
Availability zone status. Value:
VswitchId Changes to this property will trigger replacement. string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
ZoneId Changes to this property will trigger replacement. string
The ID of the zone.
loadBalancerId Changes to this property will trigger replacement. String
The ID of the load balancing instance.
status String
Availability zone status. Value:
vswitchId Changes to this property will trigger replacement. String
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId Changes to this property will trigger replacement. String
The ID of the zone.
loadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
status string
Availability zone status. Value:
vswitchId Changes to this property will trigger replacement. string
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId Changes to this property will trigger replacement. string
The ID of the zone.
load_balancer_id Changes to this property will trigger replacement. str
The ID of the load balancing instance.
status str
Availability zone status. Value:
vswitch_id Changes to this property will trigger replacement. str
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zone_id Changes to this property will trigger replacement. str
The ID of the zone.
loadBalancerId Changes to this property will trigger replacement. String
The ID of the load balancing instance.
status String
Availability zone status. Value:
vswitchId Changes to this property will trigger replacement. String
The VSwitch corresponding to the zone. By default, each zone uses one VSwitch and one subnet.
zoneId Changes to this property will trigger replacement. String
The ID of the zone.

Import

Application Load Balancer (ALB) Load Balancer Zone Shifted Attachment can be imported using the id, e.g.

$ pulumi import alicloud:alb/loadBalancerZoneShiftedAttachment:LoadBalancerZoneShiftedAttachment example <load_balancer_id>:<vswitch_id>:<zone_id>
Copy

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.