Examples:
Request syntax with placeholder values
resp = client.create_rule_group({
rule_group_name: "ResourceName", rule_group: {
rule_variables: {
ip_sets: {
"RuleVariableName" => {
definition: ["VariableDefinition"], },
},
port_sets: {
"RuleVariableName" => {
definition: ["VariableDefinition"],
},
},
},
rules_source: { rules_string: "RulesString",
rules_source_list: {
targets: ["CollectionMember_String"], target_types: ["TLS_SNI"], generated_rules_type: "ALLOWLIST", },
stateful_rules: [
{
action: "PASS", header: { protocol: "IP", source: "Source", source_port: "Port", direction: "FORWARD", destination: "Destination", destination_port: "Port", },
rule_options: [ {
keyword: "Keyword", settings: ["Setting"],
},
],
},
],
stateless_rules_and_custom_actions: {
stateless_rules: [ {
rule_definition: { match_attributes: { sources: [
{
address_definition: "AddressDefinition", },
],
destinations: [
{
address_definition: "AddressDefinition", },
],
source_ports: [
{
from_port: 1, to_port: 1, },
],
destination_ports: [
{
from_port: 1, to_port: 1, },
],
protocols: [1],
tcp_flags: [
{
flags: ["FIN"], masks: ["FIN"], },
],
},
actions: ["CollectionMember_String"], },
priority: 1, },
],
custom_actions: [
{
action_name: "ActionName", action_definition: { publish_metric_action: {
dimensions: [ {
value: "DimensionValue", },
],
},
},
},
],
},
},
},
rules: "RulesString",
type: "STATELESS", description: "Description",
capacity: 1, tags: [
{
key: "TagKey", value: "TagValue", },
],
dry_run: false,
})
Response structure
resp.update_token resp.rule_group_response.rule_group_arn resp.rule_group_response.rule_group_name resp.rule_group_response.rule_group_id resp.rule_group_response.description resp.rule_group_response.type resp.rule_group_response.capacity resp.rule_group_response.rule_group_status resp.rule_group_response.tags resp.rule_group_response.tags[0].key resp.rule_group_response.tags[0].value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4