ibm.IsSubnetNetworkAclAttachment
Explore with Pulumi AI
Create, update, or delete a subnet network ACL attachment resource. For more information, about subnet network ACL attachment, see setting up network ACLs.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsNetworkAcl = new ibm.IsNetworkAcl("exampleIsNetworkAcl", {rules: [
{
name: "outbound",
action: "allow",
source: "0.0.0.0/0",
destination: "0.0.0.0/0",
direction: "outbound",
icmp: {
code: 1,
type: 1,
},
},
{
name: "inbound",
action: "allow",
source: "0.0.0.0/0",
destination: "0.0.0.0/0",
direction: "inbound",
icmp: {
code: 1,
type: 1,
},
},
]});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: ibm_is_vpc.example.id,
zone: "us-south-1",
ipv4CidrBlock: "192.168.0.0/1",
});
const exampleIsSubnetNetworkAclAttachment = new ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", {
subnet: exampleIsSubnet.isSubnetId,
networkAcl: exampleIsNetworkAcl.isNetworkAclId,
});
import pulumi
import pulumi_ibm as ibm
example_is_network_acl = ibm.IsNetworkAcl("exampleIsNetworkAcl", rules=[
{
"name": "outbound",
"action": "allow",
"source": "0.0.0.0/0",
"destination": "0.0.0.0/0",
"direction": "outbound",
"icmp": {
"code": 1,
"type": 1,
},
},
{
"name": "inbound",
"action": "allow",
"source": "0.0.0.0/0",
"destination": "0.0.0.0/0",
"direction": "inbound",
"icmp": {
"code": 1,
"type": 1,
},
},
])
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=ibm_is_vpc["example"]["id"],
zone="us-south-1",
ipv4_cidr_block="192.168.0.0/1")
example_is_subnet_network_acl_attachment = ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment",
subnet=example_is_subnet.is_subnet_id,
network_acl=example_is_network_acl.is_network_acl_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsNetworkAcl, err := ibm.NewIsNetworkAcl(ctx, "exampleIsNetworkAcl", &ibm.IsNetworkAclArgs{
Rules: ibm.IsNetworkAclRuleTypeArray{
&ibm.IsNetworkAclRuleTypeArgs{
Name: pulumi.String("outbound"),
Action: pulumi.String("allow"),
Source: pulumi.String("0.0.0.0/0"),
Destination: pulumi.String("0.0.0.0/0"),
Direction: pulumi.String("outbound"),
Icmp: &ibm.IsNetworkAclRuleIcmpArgs{
Code: pulumi.Float64(1),
Type: pulumi.Float64(1),
},
},
&ibm.IsNetworkAclRuleTypeArgs{
Name: pulumi.String("inbound"),
Action: pulumi.String("allow"),
Source: pulumi.String("0.0.0.0/0"),
Destination: pulumi.String("0.0.0.0/0"),
Direction: pulumi.String("inbound"),
Icmp: &ibm.IsNetworkAclRuleIcmpArgs{
Code: pulumi.Float64(1),
Type: pulumi.Float64(1),
},
},
},
})
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: pulumi.Any(ibm_is_vpc.Example.Id),
Zone: pulumi.String("us-south-1"),
Ipv4CidrBlock: pulumi.String("192.168.0.0/1"),
})
if err != nil {
return err
}
_, err = ibm.NewIsSubnetNetworkAclAttachment(ctx, "exampleIsSubnetNetworkAclAttachment", &ibm.IsSubnetNetworkAclAttachmentArgs{
Subnet: exampleIsSubnet.IsSubnetId,
NetworkAcl: exampleIsNetworkAcl.IsNetworkAclId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsNetworkAcl = new Ibm.IsNetworkAcl("exampleIsNetworkAcl", new()
{
Rules = new[]
{
new Ibm.Inputs.IsNetworkAclRuleArgs
{
Name = "outbound",
Action = "allow",
Source = "0.0.0.0/0",
Destination = "0.0.0.0/0",
Direction = "outbound",
Icmp = new Ibm.Inputs.IsNetworkAclRuleIcmpArgs
{
Code = 1,
Type = 1,
},
},
new Ibm.Inputs.IsNetworkAclRuleArgs
{
Name = "inbound",
Action = "allow",
Source = "0.0.0.0/0",
Destination = "0.0.0.0/0",
Direction = "inbound",
Icmp = new Ibm.Inputs.IsNetworkAclRuleIcmpArgs
{
Code = 1,
Type = 1,
},
},
},
});
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = ibm_is_vpc.Example.Id,
Zone = "us-south-1",
Ipv4CidrBlock = "192.168.0.0/1",
});
var exampleIsSubnetNetworkAclAttachment = new Ibm.IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", new()
{
Subnet = exampleIsSubnet.IsSubnetId,
NetworkAcl = exampleIsNetworkAcl.IsNetworkAclId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsNetworkAcl;
import com.pulumi.ibm.IsNetworkAclArgs;
import com.pulumi.ibm.inputs.IsNetworkAclRuleArgs;
import com.pulumi.ibm.inputs.IsNetworkAclRuleIcmpArgs;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsSubnetNetworkAclAttachment;
import com.pulumi.ibm.IsSubnetNetworkAclAttachmentArgs;
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) {
var exampleIsNetworkAcl = new IsNetworkAcl("exampleIsNetworkAcl", IsNetworkAclArgs.builder()
.rules(
IsNetworkAclRuleArgs.builder()
.name("outbound")
.action("allow")
.source("0.0.0.0/0")
.destination("0.0.0.0/0")
.direction("outbound")
.icmp(IsNetworkAclRuleIcmpArgs.builder()
.code(1)
.type(1)
.build())
.build(),
IsNetworkAclRuleArgs.builder()
.name("inbound")
.action("allow")
.source("0.0.0.0/0")
.destination("0.0.0.0/0")
.direction("inbound")
.icmp(IsNetworkAclRuleIcmpArgs.builder()
.code(1)
.type(1)
.build())
.build())
.build());
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(ibm_is_vpc.example().id())
.zone("us-south-1")
.ipv4CidrBlock("192.168.0.0/1")
.build());
var exampleIsSubnetNetworkAclAttachment = new IsSubnetNetworkAclAttachment("exampleIsSubnetNetworkAclAttachment", IsSubnetNetworkAclAttachmentArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.networkAcl(exampleIsNetworkAcl.isNetworkAclId())
.build());
}
}
resources:
exampleIsNetworkAcl:
type: ibm:IsNetworkAcl
properties:
rules:
- name: outbound
action: allow
source: 0.0.0.0/0
destination: 0.0.0.0/0
direction: outbound
icmp:
code: 1
type: 1
- name: inbound
action: allow
source: 0.0.0.0/0
destination: 0.0.0.0/0
direction: inbound
icmp:
code: 1
type: 1
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${ibm_is_vpc.example.id}
zone: us-south-1
ipv4CidrBlock: 192.168.0.0/1
exampleIsSubnetNetworkAclAttachment:
type: ibm:IsSubnetNetworkAclAttachment
properties:
subnet: ${exampleIsSubnet.isSubnetId}
networkAcl: ${exampleIsNetworkAcl.isNetworkAclId}
Create IsSubnetNetworkAclAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsSubnetNetworkAclAttachment(name: string, args: IsSubnetNetworkAclAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsSubnetNetworkAclAttachment(resource_name: str,
args: IsSubnetNetworkAclAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsSubnetNetworkAclAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_acl: Optional[str] = None,
subnet: Optional[str] = None,
is_subnet_network_acl_attachment_id: Optional[str] = None,
timeouts: Optional[IsSubnetNetworkAclAttachmentTimeoutsArgs] = None)
func NewIsSubnetNetworkAclAttachment(ctx *Context, name string, args IsSubnetNetworkAclAttachmentArgs, opts ...ResourceOption) (*IsSubnetNetworkAclAttachment, error)
public IsSubnetNetworkAclAttachment(string name, IsSubnetNetworkAclAttachmentArgs args, CustomResourceOptions? opts = null)
public IsSubnetNetworkAclAttachment(String name, IsSubnetNetworkAclAttachmentArgs args)
public IsSubnetNetworkAclAttachment(String name, IsSubnetNetworkAclAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsSubnetNetworkAclAttachment
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 IsSubnetNetworkAclAttachmentArgs
- 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 IsSubnetNetworkAclAttachmentArgs
- 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 IsSubnetNetworkAclAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsSubnetNetworkAclAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsSubnetNetworkAclAttachmentArgs
- 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 isSubnetNetworkAclAttachmentResource = new Ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", new()
{
NetworkAcl = "string",
Subnet = "string",
IsSubnetNetworkAclAttachmentId = "string",
Timeouts = new Ibm.Inputs.IsSubnetNetworkAclAttachmentTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewIsSubnetNetworkAclAttachment(ctx, "isSubnetNetworkAclAttachmentResource", &ibm.IsSubnetNetworkAclAttachmentArgs{
NetworkAcl: pulumi.String("string"),
Subnet: pulumi.String("string"),
IsSubnetNetworkAclAttachmentId: pulumi.String("string"),
Timeouts: &ibm.IsSubnetNetworkAclAttachmentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var isSubnetNetworkAclAttachmentResource = new IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", IsSubnetNetworkAclAttachmentArgs.builder()
.networkAcl("string")
.subnet("string")
.isSubnetNetworkAclAttachmentId("string")
.timeouts(IsSubnetNetworkAclAttachmentTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
is_subnet_network_acl_attachment_resource = ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource",
network_acl="string",
subnet="string",
is_subnet_network_acl_attachment_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const isSubnetNetworkAclAttachmentResource = new ibm.IsSubnetNetworkAclAttachment("isSubnetNetworkAclAttachmentResource", {
networkAcl: "string",
subnet: "string",
isSubnetNetworkAclAttachmentId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:IsSubnetNetworkAclAttachment
properties:
isSubnetNetworkAclAttachmentId: string
networkAcl: string
subnet: string
timeouts:
create: string
delete: string
update: string
IsSubnetNetworkAclAttachment 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 IsSubnetNetworkAclAttachment resource accepts the following input properties:
- Network
Acl string - The network ACL identity.
- Subnet string
- The subnet identifier.
- Is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- Timeouts
Is
Subnet Network Acl Attachment Timeouts
- Network
Acl string - The network ACL identity.
- Subnet string
- The subnet identifier.
- Is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- Timeouts
Is
Subnet Network Acl Attachment Timeouts Args
- network
Acl String - The network ACL identity.
- subnet String
- The subnet identifier.
- is
Subnet StringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- timeouts
Is
Subnet Network Acl Attachment Timeouts
- network
Acl string - The network ACL identity.
- subnet string
- The subnet identifier.
- is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- timeouts
Is
Subnet Network Acl Attachment Timeouts
- network_
acl str - The network ACL identity.
- subnet str
- The subnet identifier.
- is_
subnet_ strnetwork_ acl_ attachment_ id - (String) The unique identifier of the Network ACL rule.
- timeouts
Is
Subnet Network Acl Attachment Timeouts Args
- network
Acl String - The network ACL identity.
- subnet String
- The subnet identifier.
- is
Subnet StringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsSubnetNetworkAclAttachment resource produces the following output properties:
- Crn string
- (String) The CRN of this network ACL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (String) The user-defined name of the rule.
- Resource
Group string - (String) The resource group (Id), of this network ACL.
- Rules
List<Is
Subnet Network Acl Attachment Rule> - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- Vpc string
- (String) The VPC to which this network ACL is a part of.
- Crn string
- (String) The CRN of this network ACL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (String) The user-defined name of the rule.
- Resource
Group string - (String) The resource group (Id), of this network ACL.
- Rules
[]Is
Subnet Network Acl Attachment Rule - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- Vpc string
- (String) The VPC to which this network ACL is a part of.
- crn String
- (String) The CRN of this network ACL.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (String) The user-defined name of the rule.
- resource
Group String - (String) The resource group (Id), of this network ACL.
- rules
List<Is
Subnet Network Acl Attachment Rule> - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- vpc String
- (String) The VPC to which this network ACL is a part of.
- crn string
- (String) The CRN of this network ACL.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (String) The user-defined name of the rule.
- resource
Group string - (String) The resource group (Id), of this network ACL.
- rules
Is
Subnet Network Acl Attachment Rule[] - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- vpc string
- (String) The VPC to which this network ACL is a part of.
- crn str
- (String) The CRN of this network ACL.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (String) The user-defined name of the rule.
- resource_
group str - (String) The resource group (Id), of this network ACL.
- rules
Sequence[Is
Subnet Network Acl Attachment Rule] - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- vpc str
- (String) The VPC to which this network ACL is a part of.
- crn String
- (String) The CRN of this network ACL.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (String) The user-defined name of the rule.
- resource
Group String - (String) The resource group (Id), of this network ACL.
- rules List<Property Map>
- (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- vpc String
- (String) The VPC to which this network ACL is a part of.
Look up Existing IsSubnetNetworkAclAttachment Resource
Get an existing IsSubnetNetworkAclAttachment 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?: IsSubnetNetworkAclAttachmentState, opts?: CustomResourceOptions): IsSubnetNetworkAclAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
crn: Optional[str] = None,
is_subnet_network_acl_attachment_id: Optional[str] = None,
name: Optional[str] = None,
network_acl: Optional[str] = None,
resource_group: Optional[str] = None,
rules: Optional[Sequence[IsSubnetNetworkAclAttachmentRuleArgs]] = None,
subnet: Optional[str] = None,
timeouts: Optional[IsSubnetNetworkAclAttachmentTimeoutsArgs] = None,
vpc: Optional[str] = None) -> IsSubnetNetworkAclAttachment
func GetIsSubnetNetworkAclAttachment(ctx *Context, name string, id IDInput, state *IsSubnetNetworkAclAttachmentState, opts ...ResourceOption) (*IsSubnetNetworkAclAttachment, error)
public static IsSubnetNetworkAclAttachment Get(string name, Input<string> id, IsSubnetNetworkAclAttachmentState? state, CustomResourceOptions? opts = null)
public static IsSubnetNetworkAclAttachment get(String name, Output<String> id, IsSubnetNetworkAclAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:IsSubnetNetworkAclAttachment 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.
- Crn string
- (String) The CRN of this network ACL.
- Is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- Name string
- (String) The user-defined name of the rule.
- Network
Acl string - The network ACL identity.
- Resource
Group string - (String) The resource group (Id), of this network ACL.
- Rules
List<Is
Subnet Network Acl Attachment Rule> - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- Subnet string
- The subnet identifier.
- Timeouts
Is
Subnet Network Acl Attachment Timeouts - Vpc string
- (String) The VPC to which this network ACL is a part of.
- Crn string
- (String) The CRN of this network ACL.
- Is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- Name string
- (String) The user-defined name of the rule.
- Network
Acl string - The network ACL identity.
- Resource
Group string - (String) The resource group (Id), of this network ACL.
- Rules
[]Is
Subnet Network Acl Attachment Rule Args - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- Subnet string
- The subnet identifier.
- Timeouts
Is
Subnet Network Acl Attachment Timeouts Args - Vpc string
- (String) The VPC to which this network ACL is a part of.
- crn String
- (String) The CRN of this network ACL.
- is
Subnet StringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- name String
- (String) The user-defined name of the rule.
- network
Acl String - The network ACL identity.
- resource
Group String - (String) The resource group (Id), of this network ACL.
- rules
List<Is
Subnet Network Acl Attachment Rule> - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- subnet String
- The subnet identifier.
- timeouts
Is
Subnet Network Acl Attachment Timeouts - vpc String
- (String) The VPC to which this network ACL is a part of.
- crn string
- (String) The CRN of this network ACL.
- is
Subnet stringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- name string
- (String) The user-defined name of the rule.
- network
Acl string - The network ACL identity.
- resource
Group string - (String) The resource group (Id), of this network ACL.
- rules
Is
Subnet Network Acl Attachment Rule[] - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- subnet string
- The subnet identifier.
- timeouts
Is
Subnet Network Acl Attachment Timeouts - vpc string
- (String) The VPC to which this network ACL is a part of.
- crn str
- (String) The CRN of this network ACL.
- is_
subnet_ strnetwork_ acl_ attachment_ id - (String) The unique identifier of the Network ACL rule.
- name str
- (String) The user-defined name of the rule.
- network_
acl str - The network ACL identity.
- resource_
group str - (String) The resource group (Id), of this network ACL.
- rules
Sequence[Is
Subnet Network Acl Attachment Rule Args] - (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- subnet str
- The subnet identifier.
- timeouts
Is
Subnet Network Acl Attachment Timeouts Args - vpc str
- (String) The VPC to which this network ACL is a part of.
- crn String
- (String) The CRN of this network ACL.
- is
Subnet StringNetwork Acl Attachment Id - (String) The unique identifier of the Network ACL rule.
- name String
- (String) The user-defined name of the rule.
- network
Acl String - The network ACL identity.
- resource
Group String - (String) The resource group (Id), of this network ACL.
- rules List<Property Map>
- (List) The ordered rules of this network ACL. If rules does not exist, all traffic will be denied. Nested rules blocks has the following structure.
- subnet String
- The subnet identifier.
- timeouts Property Map
- vpc String
- (String) The VPC to which this network ACL is a part of.
Supporting Types
IsSubnetNetworkAclAttachmentRule, IsSubnetNetworkAclAttachmentRuleArgs
- Action string
- (String) Specify to allow or deny matching traffic.
- Destination string
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Direction string
- Icmps
List<Is
Subnet Network Acl Attachment Rule Icmp> - (List) The protocol ICMP.
- Id string
- (String) The unique identifier of the Network ACL rule.
- Ip
Version string - (String) The IP version of the rule.
- Name string
- (String) The user-defined name of the rule.
- Source string
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Tcps
List<Is
Subnet Network Acl Attachment Rule Tcp> - (List) The TCP protocol.
- Udps
List<Is
Subnet Network Acl Attachment Rule Udp> - (List) The UDP protocol.
- Action string
- (String) Specify to allow or deny matching traffic.
- Destination string
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Direction string
- Icmps
[]Is
Subnet Network Acl Attachment Rule Icmp - (List) The protocol ICMP.
- Id string
- (String) The unique identifier of the Network ACL rule.
- Ip
Version string - (String) The IP version of the rule.
- Name string
- (String) The user-defined name of the rule.
- Source string
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Tcps
[]Is
Subnet Network Acl Attachment Rule Tcp - (List) The TCP protocol.
- Udps
[]Is
Subnet Network Acl Attachment Rule Udp - (List) The UDP protocol.
- action String
- (String) Specify to allow or deny matching traffic.
- destination String
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction String
- icmps
List<Is
Subnet Network Acl Attachment Rule Icmp> - (List) The protocol ICMP.
- id String
- (String) The unique identifier of the Network ACL rule.
- ip
Version String - (String) The IP version of the rule.
- name String
- (String) The user-defined name of the rule.
- source String
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
List<Is
Subnet Network Acl Attachment Rule Tcp> - (List) The TCP protocol.
- udps
List<Is
Subnet Network Acl Attachment Rule Udp> - (List) The UDP protocol.
- action string
- (String) Specify to allow or deny matching traffic.
- destination string
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction string
- icmps
Is
Subnet Network Acl Attachment Rule Icmp[] - (List) The protocol ICMP.
- id string
- (String) The unique identifier of the Network ACL rule.
- ip
Version string - (String) The IP version of the rule.
- name string
- (String) The user-defined name of the rule.
- source string
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
Is
Subnet Network Acl Attachment Rule Tcp[] - (List) The TCP protocol.
- udps
Is
Subnet Network Acl Attachment Rule Udp[] - (List) The UDP protocol.
- action str
- (String) Specify to allow or deny matching traffic.
- destination str
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction str
- icmps
Sequence[Is
Subnet Network Acl Attachment Rule Icmp] - (List) The protocol ICMP.
- id str
- (String) The unique identifier of the Network ACL rule.
- ip_
version str - (String) The IP version of the rule.
- name str
- (String) The user-defined name of the rule.
- source str
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
Sequence[Is
Subnet Network Acl Attachment Rule Tcp] - (List) The TCP protocol.
- udps
Sequence[Is
Subnet Network Acl Attachment Rule Udp] - (List) The UDP protocol.
- action String
- (String) Specify to allow or deny matching traffic.
- destination String
- (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction String
- icmps List<Property Map>
- (List) The protocol ICMP.
- id String
- (String) The unique identifier of the Network ACL rule.
- ip
Version String - (String) The IP version of the rule.
- name String
- (String) The user-defined name of the rule.
- source String
- (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps List<Property Map>
- (List) The TCP protocol.
- udps List<Property Map>
- (List) The UDP protocol.
IsSubnetNetworkAclAttachmentRuleIcmp, IsSubnetNetworkAclAttachmentRuleIcmpArgs
IsSubnetNetworkAclAttachmentRuleTcp, IsSubnetNetworkAclAttachmentRuleTcpArgs
- Port
Max double - Port
Min double - Source
Port doubleMax - (String) The inclusive maximum bound of UDP source port range.
- Source
Port doubleMin - (String) The inclusive minimum bound of UDP source port range.
- Port
Max float64 - Port
Min float64 - Source
Port float64Max - (String) The inclusive maximum bound of UDP source port range.
- Source
Port float64Min - (String) The inclusive minimum bound of UDP source port range.
- port
Max Double - port
Min Double - source
Port DoubleMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port DoubleMin - (String) The inclusive minimum bound of UDP source port range.
- port
Max number - port
Min number - source
Port numberMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port numberMin - (String) The inclusive minimum bound of UDP source port range.
- port_
max float - port_
min float - source_
port_ floatmax - (String) The inclusive maximum bound of UDP source port range.
- source_
port_ floatmin - (String) The inclusive minimum bound of UDP source port range.
- port
Max Number - port
Min Number - source
Port NumberMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port NumberMin - (String) The inclusive minimum bound of UDP source port range.
IsSubnetNetworkAclAttachmentRuleUdp, IsSubnetNetworkAclAttachmentRuleUdpArgs
- Port
Max double - Port
Min double - Source
Port doubleMax - (String) The inclusive maximum bound of UDP source port range.
- Source
Port doubleMin - (String) The inclusive minimum bound of UDP source port range.
- Port
Max float64 - Port
Min float64 - Source
Port float64Max - (String) The inclusive maximum bound of UDP source port range.
- Source
Port float64Min - (String) The inclusive minimum bound of UDP source port range.
- port
Max Double - port
Min Double - source
Port DoubleMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port DoubleMin - (String) The inclusive minimum bound of UDP source port range.
- port
Max number - port
Min number - source
Port numberMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port numberMin - (String) The inclusive minimum bound of UDP source port range.
- port_
max float - port_
min float - source_
port_ floatmax - (String) The inclusive maximum bound of UDP source port range.
- source_
port_ floatmin - (String) The inclusive minimum bound of UDP source port range.
- port
Max Number - port
Min Number - source
Port NumberMax - (String) The inclusive maximum bound of UDP source port range.
- source
Port NumberMin - (String) The inclusive minimum bound of UDP source port range.
IsSubnetNetworkAclAttachmentTimeouts, IsSubnetNetworkAclAttachmentTimeoutsArgs
Import
The ibm_is_subnet_network_acl_attachment
resource can be imported by using the ID.
Syntax
$ pulumi import ibm:index/isSubnetNetworkAclAttachment:IsSubnetNetworkAclAttachment example <subnet_network_acl_ID>
Example
$ pulumi import ibm:index/isSubnetNetworkAclAttachment:IsSubnetNetworkAclAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.