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
This property is required. string - The unique name of the resource.
- args
This property is required. IsSubnetNetworkAclAttachmentArgs - 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. 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
This property is required. string - The unique name of the resource.
- args
This property is required. IsSubnetNetworkAclAttachmentArgs - 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. IsSubnetNetworkAclAttachmentArgs - 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. 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: &.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 This property is required. string - The network ACL identity.
- Subnet
This property is required. 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 This property is required. string - The network ACL identity.
- Subnet
This property is required. 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 This property is required. String - The network ACL identity.
- subnet
This property is required. 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 This property is required. string - The network ACL identity.
- subnet
This property is required. 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 This property is required. str - The network ACL identity.
- subnet
This property is required. 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 This property is required. String - The network ACL identity.
- subnet
This property is required. 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
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.
- 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
This property is required. string - (String) Specify to allow or deny matching traffic.
- Destination
This property is required. string - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Direction
This property is required. string - Icmps
This property is required. List<IsSubnet Network Acl Attachment Rule Icmp> - (List) The protocol ICMP.
- Id
This property is required. string - (String) The unique identifier of the Network ACL rule.
- Ip
Version This property is required. string - (String) The IP version of the rule.
- Name
This property is required. string - (String) The user-defined name of the rule.
- Source
This property is required. string - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Tcps
This property is required. List<IsSubnet Network Acl Attachment Rule Tcp> - (List) The TCP protocol.
- Udps
This property is required. List<IsSubnet Network Acl Attachment Rule Udp> - (List) The UDP protocol.
- Action
This property is required. string - (String) Specify to allow or deny matching traffic.
- Destination
This property is required. string - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Direction
This property is required. string - Icmps
This property is required. []IsSubnet Network Acl Attachment Rule Icmp - (List) The protocol ICMP.
- Id
This property is required. string - (String) The unique identifier of the Network ACL rule.
- Ip
Version This property is required. string - (String) The IP version of the rule.
- Name
This property is required. string - (String) The user-defined name of the rule.
- Source
This property is required. string - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- Tcps
This property is required. []IsSubnet Network Acl Attachment Rule Tcp - (List) The TCP protocol.
- Udps
This property is required. []IsSubnet Network Acl Attachment Rule Udp - (List) The UDP protocol.
- action
This property is required. String - (String) Specify to allow or deny matching traffic.
- destination
This property is required. String - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction
This property is required. String - icmps
This property is required. List<IsSubnet Network Acl Attachment Rule Icmp> - (List) The protocol ICMP.
- id
This property is required. String - (String) The unique identifier of the Network ACL rule.
- ip
Version This property is required. String - (String) The IP version of the rule.
- name
This property is required. String - (String) The user-defined name of the rule.
- source
This property is required. String - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
This property is required. List<IsSubnet Network Acl Attachment Rule Tcp> - (List) The TCP protocol.
- udps
This property is required. List<IsSubnet Network Acl Attachment Rule Udp> - (List) The UDP protocol.
- action
This property is required. string - (String) Specify to allow or deny matching traffic.
- destination
This property is required. string - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction
This property is required. string - icmps
This property is required. IsSubnet Network Acl Attachment Rule Icmp[] - (List) The protocol ICMP.
- id
This property is required. string - (String) The unique identifier of the Network ACL rule.
- ip
Version This property is required. string - (String) The IP version of the rule.
- name
This property is required. string - (String) The user-defined name of the rule.
- source
This property is required. string - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
This property is required. IsSubnet Network Acl Attachment Rule Tcp[] - (List) The TCP protocol.
- udps
This property is required. IsSubnet Network Acl Attachment Rule Udp[] - (List) The UDP protocol.
- action
This property is required. str - (String) Specify to allow or deny matching traffic.
- destination
This property is required. str - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction
This property is required. str - icmps
This property is required. Sequence[IsSubnet Network Acl Attachment Rule Icmp] - (List) The protocol ICMP.
- id
This property is required. str - (String) The unique identifier of the Network ACL rule.
- ip_
version This property is required. str - (String) The IP version of the rule.
- name
This property is required. str - (String) The user-defined name of the rule.
- source
This property is required. str - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
This property is required. Sequence[IsSubnet Network Acl Attachment Rule Tcp] - (List) The TCP protocol.
- udps
This property is required. Sequence[IsSubnet Network Acl Attachment Rule Udp] - (List) The UDP protocol.
- action
This property is required. String - (String) Specify to allow or deny matching traffic.
- destination
This property is required. String - (String) The destination CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- direction
This property is required. String - icmps
This property is required. List<Property Map> - (List) The protocol ICMP.
- id
This property is required. String - (String) The unique identifier of the Network ACL rule.
- ip
Version This property is required. String - (String) The IP version of the rule.
- name
This property is required. String - (String) The user-defined name of the rule.
- source
This property is required. String - (String) The source CIDR block. The CIDR block 0.0.0.0/0 applies to all addresses.
- tcps
This property is required. List<Property Map> - (List) The TCP protocol.
- udps
This property is required. List<Property Map> - (List) The UDP protocol.
IsSubnetNetworkAclAttachmentRuleIcmp, IsSubnetNetworkAclAttachmentRuleIcmpArgs
- Code
This property is required. double - (String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
- Type
This property is required. double - (String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
- Code
This property is required. float64 - (String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
- Type
This property is required. float64 - (String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
- code
This property is required. Double - (String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
- type
This property is required. Double - (String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
- code
This property is required. number - (String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
- type
This property is required. number - (String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
- code
This property is required. Number - (String) The ICMP traffic code to allow. If unspecified, all codes are allowed. This can only be specified if type is also specified.
- type
This property is required. Number - (String) The ICMP traffic type to allow. If unspecified, all types are allowed by this rule.
IsSubnetNetworkAclAttachmentRuleTcp, IsSubnetNetworkAclAttachmentRuleTcpArgs
- Port
Max This property is required. double - Port
Min This property is required. double - Source
Port Max This property is required. double - (String) The inclusive maximum bound of UDP source port range.
- Source
Port Min This property is required. double - (String) The inclusive minimum bound of UDP source port range.
- Port
Max This property is required. float64 - Port
Min This property is required. float64 - Source
Port Max This property is required. float64 - (String) The inclusive maximum bound of UDP source port range.
- Source
Port Min This property is required. float64 - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. Double - port
Min This property is required. Double - source
Port Max This property is required. Double - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. Double - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. number - port
Min This property is required. number - source
Port Max This property is required. number - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. number - (String) The inclusive minimum bound of UDP source port range.
- port_
max This property is required. float - port_
min This property is required. float - source_
port_ max This property is required. float - (String) The inclusive maximum bound of UDP source port range.
- source_
port_ min This property is required. float - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. Number - port
Min This property is required. Number - source
Port Max This property is required. Number - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. Number - (String) The inclusive minimum bound of UDP source port range.
IsSubnetNetworkAclAttachmentRuleUdp, IsSubnetNetworkAclAttachmentRuleUdpArgs
- Port
Max This property is required. double - Port
Min This property is required. double - Source
Port Max This property is required. double - (String) The inclusive maximum bound of UDP source port range.
- Source
Port Min This property is required. double - (String) The inclusive minimum bound of UDP source port range.
- Port
Max This property is required. float64 - Port
Min This property is required. float64 - Source
Port Max This property is required. float64 - (String) The inclusive maximum bound of UDP source port range.
- Source
Port Min This property is required. float64 - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. Double - port
Min This property is required. Double - source
Port Max This property is required. Double - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. Double - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. number - port
Min This property is required. number - source
Port Max This property is required. number - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. number - (String) The inclusive minimum bound of UDP source port range.
- port_
max This property is required. float - port_
min This property is required. float - source_
port_ max This property is required. float - (String) The inclusive maximum bound of UDP source port range.
- source_
port_ min This property is required. float - (String) The inclusive minimum bound of UDP source port range.
- port
Max This property is required. Number - port
Min This property is required. Number - source
Port Max This property is required. Number - (String) The inclusive maximum bound of UDP source port range.
- source
Port Min This property is required. Number - (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.