alicloud.nlb.LoadBalancerSecurityGroupAttachment
Explore with Pulumi AI
Provides a NLB Load Balancer Security Group Attachment resource.
Security Group mount.
For information about NLB Load Balancer Security Group Attachment and how to use it, see What is Load Balancer Security Group Attachment.
NOTE: Available since v1.198.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 defaultLoadBalancerSecurityGroupAttachment = new alicloud.nlb.LoadBalancerSecurityGroupAttachment("default", {
securityGroupId: defaultSecurityGroup.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_load_balancer_security_group_attachment = alicloud.nlb.LoadBalancerSecurityGroupAttachment("default",
security_group_id=default_security_group.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
}
defaultSecurityGroup, 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
}
_, err = nlb.NewLoadBalancerSecurityGroupAttachment(ctx, "default", &nlb.LoadBalancerSecurityGroupAttachmentArgs{
SecurityGroupId: defaultSecurityGroup.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 defaultLoadBalancerSecurityGroupAttachment = new AliCloud.Nlb.LoadBalancerSecurityGroupAttachment("default", new()
{
SecurityGroupId = defaultSecurityGroup.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.nlb.LoadBalancerSecurityGroupAttachment;
import com.pulumi.alicloud.nlb.LoadBalancerSecurityGroupAttachmentArgs;
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 defaultLoadBalancerSecurityGroupAttachment = new LoadBalancerSecurityGroupAttachment("defaultLoadBalancerSecurityGroupAttachment", LoadBalancerSecurityGroupAttachmentArgs.builder()
.securityGroupId(defaultSecurityGroup.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}
defaultLoadBalancerSecurityGroupAttachment:
type: alicloud:nlb:LoadBalancerSecurityGroupAttachment
name: default
properties:
securityGroupId: ${defaultSecurityGroup.id}
loadBalancerId: ${defaultLoadBalancer.id}
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
defaultGetZones:
fn::invoke:
Function: alicloud:nlb:getZones
Arguments: {}
Create LoadBalancerSecurityGroupAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancerSecurityGroupAttachment(name: string, args: LoadBalancerSecurityGroupAttachmentArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancerSecurityGroupAttachment(resource_name: str,
args: LoadBalancerSecurityGroupAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancerSecurityGroupAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
security_group_id: Optional[str] = None,
dry_run: Optional[bool] = None)
func NewLoadBalancerSecurityGroupAttachment(ctx *Context, name string, args LoadBalancerSecurityGroupAttachmentArgs, opts ...ResourceOption) (*LoadBalancerSecurityGroupAttachment, error)
public LoadBalancerSecurityGroupAttachment(string name, LoadBalancerSecurityGroupAttachmentArgs args, CustomResourceOptions? opts = null)
public LoadBalancerSecurityGroupAttachment(String name, LoadBalancerSecurityGroupAttachmentArgs args)
public LoadBalancerSecurityGroupAttachment(String name, LoadBalancerSecurityGroupAttachmentArgs args, CustomResourceOptions options)
type: alicloud:nlb:LoadBalancerSecurityGroupAttachment
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 LoadBalancerSecurityGroupAttachmentArgs
- 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 LoadBalancerSecurityGroupAttachmentArgs
- 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 LoadBalancerSecurityGroupAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerSecurityGroupAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerSecurityGroupAttachmentArgs
- 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 alicloudLoadBalancerSecurityGroupAttachmentResource = new AliCloud.Nlb.LoadBalancerSecurityGroupAttachment("alicloudLoadBalancerSecurityGroupAttachmentResource", new()
{
LoadBalancerId = "string",
SecurityGroupId = "string",
DryRun = false,
});
example, err := nlb.NewLoadBalancerSecurityGroupAttachment(ctx, "alicloudLoadBalancerSecurityGroupAttachmentResource", &nlb.LoadBalancerSecurityGroupAttachmentArgs{
LoadBalancerId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
})
var alicloudLoadBalancerSecurityGroupAttachmentResource = new LoadBalancerSecurityGroupAttachment("alicloudLoadBalancerSecurityGroupAttachmentResource", LoadBalancerSecurityGroupAttachmentArgs.builder()
.loadBalancerId("string")
.securityGroupId("string")
.dryRun(false)
.build());
alicloud_load_balancer_security_group_attachment_resource = alicloud.nlb.LoadBalancerSecurityGroupAttachment("alicloudLoadBalancerSecurityGroupAttachmentResource",
load_balancer_id="string",
security_group_id="string",
dry_run=False)
const alicloudLoadBalancerSecurityGroupAttachmentResource = new alicloud.nlb.LoadBalancerSecurityGroupAttachment("alicloudLoadBalancerSecurityGroupAttachmentResource", {
loadBalancerId: "string",
securityGroupId: "string",
dryRun: false,
});
type: alicloud:nlb:LoadBalancerSecurityGroupAttachment
properties:
dryRun: false
loadBalancerId: string
securityGroupId: string
LoadBalancerSecurityGroupAttachment 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 LoadBalancerSecurityGroupAttachment resource accepts the following input properties:
- Load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- Security
Group stringId - The ID of the security group to be disassociated.
- Dry
Run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- Load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- Security
Group stringId - The ID of the security group to be disassociated.
- Dry
Run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer StringId - The ID of the NLB instance to be associated with the security group.
- security
Group StringId - The ID of the security group to be disassociated.
- dry
Run Boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- security
Group stringId - The ID of the security group to be disassociated.
- dry
Run boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load_
balancer_ strid - The ID of the NLB instance to be associated with the security group.
- security_
group_ strid - The ID of the security group to be disassociated.
- dry_
run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer StringId - The ID of the NLB instance to be associated with the security group.
- security
Group StringId - The ID of the security group to be disassociated.
- dry
Run Boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancerSecurityGroupAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LoadBalancerSecurityGroupAttachment Resource
Get an existing LoadBalancerSecurityGroupAttachment 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?: LoadBalancerSecurityGroupAttachmentState, opts?: CustomResourceOptions): LoadBalancerSecurityGroupAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
load_balancer_id: Optional[str] = None,
security_group_id: Optional[str] = None) -> LoadBalancerSecurityGroupAttachment
func GetLoadBalancerSecurityGroupAttachment(ctx *Context, name string, id IDInput, state *LoadBalancerSecurityGroupAttachmentState, opts ...ResourceOption) (*LoadBalancerSecurityGroupAttachment, error)
public static LoadBalancerSecurityGroupAttachment Get(string name, Input<string> id, LoadBalancerSecurityGroupAttachmentState? state, CustomResourceOptions? opts = null)
public static LoadBalancerSecurityGroupAttachment get(String name, Output<String> id, LoadBalancerSecurityGroupAttachmentState 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.
- Dry
Run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- Load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- Security
Group stringId - The ID of the security group to be disassociated.
- Dry
Run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- Load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- Security
Group stringId - The ID of the security group to be disassociated.
- dry
Run Boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer StringId - The ID of the NLB instance to be associated with the security group.
- security
Group StringId - The ID of the security group to be disassociated.
- dry
Run boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer stringId - The ID of the NLB instance to be associated with the security group.
- security
Group stringId - The ID of the security group to be disassociated.
- dry_
run bool - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load_
balancer_ strid - The ID of the NLB instance to be associated with the security group.
- security_
group_ strid - The ID of the security group to be disassociated.
- dry
Run Boolean - Specifies whether to perform a dry run, without performing the actual request. Valid values:
- load
Balancer StringId - The ID of the NLB instance to be associated with the security group.
- security
Group StringId - The ID of the security group to be disassociated.
Import
NLB Load Balancer Security Group Attachment can be imported using the id, e.g.
$ pulumi import alicloud:nlb/loadBalancerSecurityGroupAttachment:LoadBalancerSecurityGroupAttachment example <load_balancer_id>:<security_group_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.