1. Packages
  2. AWS Native
  3. API Docs
  4. networkfirewall
  5. RuleGroup

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.networkfirewall.RuleGroup

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    Resource type definition for AWS::NetworkFirewall::RuleGroup

    Create RuleGroup Resource

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

    Constructor syntax

    new RuleGroup(name: string, args: RuleGroupArgs, opts?: CustomResourceOptions);
    @overload
    def RuleGroup(resource_name: str,
                  args: RuleGroupInitArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def RuleGroup(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  capacity: Optional[int] = None,
                  type: Optional[RuleGroupTypeEnum] = None,
                  description: Optional[str] = None,
                  rule_group: Optional[RuleGroupArgs] = None,
                  rule_group_name: Optional[str] = None,
                  tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewRuleGroup(ctx *Context, name string, args RuleGroupArgs, opts ...ResourceOption) (*RuleGroup, error)
    public RuleGroup(string name, RuleGroupArgs args, CustomResourceOptions? opts = null)
    public RuleGroup(String name, RuleGroupArgs args)
    public RuleGroup(String name, RuleGroupArgs args, CustomResourceOptions options)
    
    type: aws-native:networkfirewall:RuleGroup
    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 RuleGroupArgs
    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 RuleGroupInitArgs
    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 RuleGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const ruleGroupResource = new aws_native.networkfirewall.RuleGroup("ruleGroupResource", {
        capacity: 0,
        type: aws_native.networkfirewall.RuleGroupTypeEnum.Stateless,
        description: "string",
        ruleGroup: {
            rulesSource: {
                rulesSourceList: {
                    generatedRulesType: aws_native.networkfirewall.RuleGroupGeneratedRulesType.Allowlist,
                    targetTypes: [aws_native.networkfirewall.RuleGroupTargetType.TlsSni],
                    targets: ["string"],
                },
                rulesString: "string",
                statefulRules: [{
                    action: aws_native.networkfirewall.RuleGroupStatefulRuleAction.Pass,
                    header: {
                        destination: "string",
                        destinationPort: "string",
                        direction: aws_native.networkfirewall.RuleGroupHeaderDirection.Forward,
                        protocol: aws_native.networkfirewall.RuleGroupHeaderProtocol.Ip,
                        source: "string",
                        sourcePort: "string",
                    },
                    ruleOptions: [{
                        keyword: "string",
                        settings: ["string"],
                    }],
                }],
                statelessRulesAndCustomActions: {
                    statelessRules: [{
                        priority: 0,
                        ruleDefinition: {
                            actions: ["string"],
                            matchAttributes: {
                                destinationPorts: [{
                                    fromPort: 0,
                                    toPort: 0,
                                }],
                                destinations: [{
                                    addressDefinition: "string",
                                }],
                                protocols: [0],
                                sourcePorts: [{
                                    fromPort: 0,
                                    toPort: 0,
                                }],
                                sources: [{
                                    addressDefinition: "string",
                                }],
                                tcpFlags: [{
                                    flags: [aws_native.networkfirewall.RuleGroupTcpFlag.Fin],
                                    masks: [aws_native.networkfirewall.RuleGroupTcpFlag.Fin],
                                }],
                            },
                        },
                    }],
                    customActions: [{
                        actionDefinition: {
                            publishMetricAction: {
                                dimensions: [{
                                    value: "string",
                                }],
                            },
                        },
                        actionName: "string",
                    }],
                },
            },
            referenceSets: {
                ipSetReferences: {
                    string: {
                        referenceArn: "string",
                    },
                },
            },
            ruleVariables: {
                ipSets: {
                    string: {
                        definition: ["string"],
                    },
                },
                portSets: {
                    string: {
                        definition: ["string"],
                    },
                },
            },
            statefulRuleOptions: {
                ruleOrder: aws_native.networkfirewall.RuleGroupRuleOrder.DefaultActionOrder,
            },
        },
        ruleGroupName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    Coming soon!
    

    RuleGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The RuleGroup resource accepts the following input properties:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleGroupArn string
    RuleGroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleGroupArn string
    RuleGroupId string
    id String
    The provider-assigned unique ID for this managed resource.
    ruleGroupArn String
    ruleGroupId String
    id string
    The provider-assigned unique ID for this managed resource.
    ruleGroupArn string
    ruleGroupId string
    id str
    The provider-assigned unique ID for this managed resource.
    rule_group_arn str
    rule_group_id str
    id String
    The provider-assigned unique ID for this managed resource.
    ruleGroupArn String
    ruleGroupId String

    Supporting Types

    RuleGroup, RuleGroupArgs

    RuleGroupActionDefinition, RuleGroupActionDefinitionArgs

    RuleGroupAddress, RuleGroupAddressArgs

    RuleGroupCustomAction, RuleGroupCustomActionArgs

    RuleGroupDimension, RuleGroupDimensionArgs

    Value string
    Value string
    value String
    value string
    value str
    value String

    RuleGroupGeneratedRulesType, RuleGroupGeneratedRulesTypeArgs

    Allowlist
    ALLOWLIST
    Denylist
    DENYLIST
    RuleGroupGeneratedRulesTypeAllowlist
    ALLOWLIST
    RuleGroupGeneratedRulesTypeDenylist
    DENYLIST
    Allowlist
    ALLOWLIST
    Denylist
    DENYLIST
    Allowlist
    ALLOWLIST
    Denylist
    DENYLIST
    ALLOWLIST
    ALLOWLIST
    DENYLIST
    DENYLIST
    "ALLOWLIST"
    ALLOWLIST
    "DENYLIST"
    DENYLIST

    RuleGroupHeader, RuleGroupHeaderArgs

    RuleGroupHeaderDirection, RuleGroupHeaderDirectionArgs

    Forward
    FORWARD
    Any
    ANY
    RuleGroupHeaderDirectionForward
    FORWARD
    RuleGroupHeaderDirectionAny
    ANY
    Forward
    FORWARD
    Any
    ANY
    Forward
    FORWARD
    Any
    ANY
    FORWARD
    FORWARD
    ANY
    ANY
    "FORWARD"
    FORWARD
    "ANY"
    ANY

    RuleGroupHeaderProtocol, RuleGroupHeaderProtocolArgs

    Ip
    IP
    Tcp
    TCP
    Udp
    UDP
    Icmp
    ICMP
    Http
    HTTP
    Ftp
    FTP
    Tls
    TLS
    Smb
    SMB
    Dns
    DNS
    Dcerpc
    DCERPC
    Ssh
    SSH
    Smtp
    SMTP
    Imap
    IMAP
    Msn
    MSN
    Krb5
    KRB5
    Ikev2
    IKEV2
    Tftp
    TFTP
    Ntp
    NTP
    Dhcp
    DHCP
    RuleGroupHeaderProtocolIp
    IP
    RuleGroupHeaderProtocolTcp
    TCP
    RuleGroupHeaderProtocolUdp
    UDP
    RuleGroupHeaderProtocolIcmp
    ICMP
    RuleGroupHeaderProtocolHttp
    HTTP
    RuleGroupHeaderProtocolFtp
    FTP
    RuleGroupHeaderProtocolTls
    TLS
    RuleGroupHeaderProtocolSmb
    SMB
    RuleGroupHeaderProtocolDns
    DNS
    RuleGroupHeaderProtocolDcerpc
    DCERPC
    RuleGroupHeaderProtocolSsh
    SSH
    RuleGroupHeaderProtocolSmtp
    SMTP
    RuleGroupHeaderProtocolImap
    IMAP
    RuleGroupHeaderProtocolMsn
    MSN
    RuleGroupHeaderProtocolKrb5
    KRB5
    RuleGroupHeaderProtocolIkev2
    IKEV2
    RuleGroupHeaderProtocolTftp
    TFTP
    RuleGroupHeaderProtocolNtp
    NTP
    RuleGroupHeaderProtocolDhcp
    DHCP
    Ip
    IP
    Tcp
    TCP
    Udp
    UDP
    Icmp
    ICMP
    Http
    HTTP
    Ftp
    FTP
    Tls
    TLS
    Smb
    SMB
    Dns
    DNS
    Dcerpc
    DCERPC
    Ssh
    SSH
    Smtp
    SMTP
    Imap
    IMAP
    Msn
    MSN
    Krb5
    KRB5
    Ikev2
    IKEV2
    Tftp
    TFTP
    Ntp
    NTP
    Dhcp
    DHCP
    Ip
    IP
    Tcp
    TCP
    Udp
    UDP
    Icmp
    ICMP
    Http
    HTTP
    Ftp
    FTP
    Tls
    TLS
    Smb
    SMB
    Dns
    DNS
    Dcerpc
    DCERPC
    Ssh
    SSH
    Smtp
    SMTP
    Imap
    IMAP
    Msn
    MSN
    Krb5
    KRB5
    Ikev2
    IKEV2
    Tftp
    TFTP
    Ntp
    NTP
    Dhcp
    DHCP
    IP
    IP
    TCP
    TCP
    UDP
    UDP
    ICMP
    ICMP
    HTTP
    HTTP
    FTP
    FTP
    TLS
    TLS
    SMB
    SMB
    DNS
    DNS
    DCERPC
    DCERPC
    SSH
    SSH
    SMTP
    SMTP
    IMAP
    IMAP
    MSN
    MSN
    KRB5
    KRB5
    IKEV2
    IKEV2
    TFTP
    TFTP
    NTP
    NTP
    DHCP
    DHCP
    "IP"
    IP
    "TCP"
    TCP
    "UDP"
    UDP
    "ICMP"
    ICMP
    "HTTP"
    HTTP
    "FTP"
    FTP
    "TLS"
    TLS
    "SMB"
    SMB
    "DNS"
    DNS
    "DCERPC"
    DCERPC
    "SSH"
    SSH
    "SMTP"
    SMTP
    "IMAP"
    IMAP
    "MSN"
    MSN
    "KRB5"
    KRB5
    "IKEV2"
    IKEV2
    "TFTP"
    TFTP
    "NTP"
    NTP
    "DHCP"
    DHCP

    RuleGroupIpSet, RuleGroupIpSetArgs

    Definition List<string>
    Definition []string
    definition List<String>
    definition string[]
    definition Sequence[str]
    definition List<String>

    RuleGroupIpSetReference, RuleGroupIpSetReferenceArgs

    RuleGroupMatchAttributes, RuleGroupMatchAttributesArgs

    RuleGroupPortRange, RuleGroupPortRangeArgs

    fromPort Integer
    toPort Integer
    fromPort number
    toPort number
    fromPort Number
    toPort Number

    RuleGroupPortSet, RuleGroupPortSetArgs

    Definition List<string>
    Definition []string
    definition List<String>
    definition string[]
    definition Sequence[str]
    definition List<String>

    RuleGroupPublishMetricAction, RuleGroupPublishMetricActionArgs

    RuleGroupReferenceSets, RuleGroupReferenceSetsArgs

    IpSetReferences Dictionary<string, Pulumi.AwsNative.NetworkFirewall.Inputs.RuleGroupIpSetReference>
    IpSetReferences map[string]RuleGroupIpSetReference
    ipSetReferences Map<String,RuleGroupIpSetReference>
    ipSetReferences {[key: string]: RuleGroupIpSetReference}
    ip_set_references Mapping[str, RuleGroupIpSetReference]
    ipSetReferences Map<Property Map>

    RuleGroupRuleDefinition, RuleGroupRuleDefinitionArgs

    RuleGroupRuleOption, RuleGroupRuleOptionArgs

    Keyword string
    Settings List<string>
    Keyword string
    Settings []string
    keyword String
    settings List<String>
    keyword string
    settings string[]
    keyword str
    settings Sequence[str]
    keyword String
    settings List<String>

    RuleGroupRuleOrder, RuleGroupRuleOrderArgs

    DefaultActionOrder
    DEFAULT_ACTION_ORDER
    StrictOrder
    STRICT_ORDER
    RuleGroupRuleOrderDefaultActionOrder
    DEFAULT_ACTION_ORDER
    RuleGroupRuleOrderStrictOrder
    STRICT_ORDER
    DefaultActionOrder
    DEFAULT_ACTION_ORDER
    StrictOrder
    STRICT_ORDER
    DefaultActionOrder
    DEFAULT_ACTION_ORDER
    StrictOrder
    STRICT_ORDER
    DEFAULT_ACTION_ORDER
    DEFAULT_ACTION_ORDER
    STRICT_ORDER
    STRICT_ORDER
    "DEFAULT_ACTION_ORDER"
    DEFAULT_ACTION_ORDER
    "STRICT_ORDER"
    STRICT_ORDER

    RuleGroupRuleVariables, RuleGroupRuleVariablesArgs

    IpSets Dictionary<string, Pulumi.AwsNative.NetworkFirewall.Inputs.RuleGroupIpSet>
    PortSets Dictionary<string, Pulumi.AwsNative.NetworkFirewall.Inputs.RuleGroupPortSet>
    IpSets map[string]RuleGroupIpSet
    PortSets map[string]RuleGroupPortSet
    ipSets Map<String,RuleGroupIpSet>
    portSets Map<String,RuleGroupPortSet>
    ipSets {[key: string]: RuleGroupIpSet}
    portSets {[key: string]: RuleGroupPortSet}
    ip_sets Mapping[str, RuleGroupIpSet]
    port_sets Mapping[str, RuleGroupPortSet]
    ipSets Map<Property Map>
    portSets Map<Property Map>

    RuleGroupRulesSource, RuleGroupRulesSourceArgs

    RuleGroupRulesSourceList, RuleGroupRulesSourceListArgs

    RuleGroupStatefulRule, RuleGroupStatefulRuleArgs

    RuleGroupStatefulRuleAction, RuleGroupStatefulRuleActionArgs

    Pass
    PASS
    Drop
    DROP
    Alert
    ALERT
    Reject
    REJECT
    RuleGroupStatefulRuleActionPass
    PASS
    RuleGroupStatefulRuleActionDrop
    DROP
    RuleGroupStatefulRuleActionAlert
    ALERT
    RuleGroupStatefulRuleActionReject
    REJECT
    Pass
    PASS
    Drop
    DROP
    Alert
    ALERT
    Reject
    REJECT
    Pass
    PASS
    Drop
    DROP
    Alert
    ALERT
    Reject
    REJECT
    PASS_
    PASS
    DROP
    DROP
    ALERT
    ALERT
    REJECT
    REJECT
    "PASS"
    PASS
    "DROP"
    DROP
    "ALERT"
    ALERT
    "REJECT"
    REJECT

    RuleGroupStatefulRuleOptions, RuleGroupStatefulRuleOptionsArgs

    RuleGroupStatelessRule, RuleGroupStatelessRuleArgs

    RuleGroupStatelessRulesAndCustomActions, RuleGroupStatelessRulesAndCustomActionsArgs

    RuleGroupTargetType, RuleGroupTargetTypeArgs

    TlsSni
    TLS_SNI
    HttpHost
    HTTP_HOST
    RuleGroupTargetTypeTlsSni
    TLS_SNI
    RuleGroupTargetTypeHttpHost
    HTTP_HOST
    TlsSni
    TLS_SNI
    HttpHost
    HTTP_HOST
    TlsSni
    TLS_SNI
    HttpHost
    HTTP_HOST
    TLS_SNI
    TLS_SNI
    HTTP_HOST
    HTTP_HOST
    "TLS_SNI"
    TLS_SNI
    "HTTP_HOST"
    HTTP_HOST

    RuleGroupTcpFlag, RuleGroupTcpFlagArgs

    Fin
    FIN
    Syn
    SYN
    Rst
    RST
    Psh
    PSH
    Ack
    ACK
    Urg
    URG
    Ece
    ECE
    Cwr
    CWR
    RuleGroupTcpFlagFin
    FIN
    RuleGroupTcpFlagSyn
    SYN
    RuleGroupTcpFlagRst
    RST
    RuleGroupTcpFlagPsh
    PSH
    RuleGroupTcpFlagAck
    ACK
    RuleGroupTcpFlagUrg
    URG
    RuleGroupTcpFlagEce
    ECE
    RuleGroupTcpFlagCwr
    CWR
    Fin
    FIN
    Syn
    SYN
    Rst
    RST
    Psh
    PSH
    Ack
    ACK
    Urg
    URG
    Ece
    ECE
    Cwr
    CWR
    Fin
    FIN
    Syn
    SYN
    Rst
    RST
    Psh
    PSH
    Ack
    ACK
    Urg
    URG
    Ece
    ECE
    Cwr
    CWR
    FIN
    FIN
    SYN
    SYN
    RST
    RST
    PSH
    PSH
    ACK
    ACK
    URG
    URG
    ECE
    ECE
    CWR
    CWR
    "FIN"
    FIN
    "SYN"
    SYN
    "RST"
    RST
    "PSH"
    PSH
    "ACK"
    ACK
    "URG"
    URG
    "ECE"
    ECE
    "CWR"
    CWR

    RuleGroupTcpFlagField, RuleGroupTcpFlagFieldArgs

    RuleGroupTypeEnum, RuleGroupTypeEnumArgs

    Stateless
    STATELESS
    Stateful
    STATEFUL
    RuleGroupTypeEnumStateless
    STATELESS
    RuleGroupTypeEnumStateful
    STATEFUL
    Stateless
    STATELESS
    Stateful
    STATEFUL
    Stateless
    STATELESS
    Stateful
    STATEFUL
    STATELESS
    STATELESS
    STATEFUL
    STATEFUL
    "STATELESS"
    STATELESS
    "STATEFUL"
    STATEFUL

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi