1. Packages
  2. Cloudamqp Provider
  3. API Docs
  4. SecurityFirewall
CloudAMQP v3.20.2 published on Tuesday, Oct 29, 2024 by Pulumi

cloudamqp.SecurityFirewall

Explore with Pulumi AI

cloudamqp logo
CloudAMQP v3.20.2 published on Tuesday, Oct 29, 2024 by Pulumi

    Import

    cloudamqp_security_firewall can be imported using CloudAMQP instance identifier.

    $ pulumi import cloudamqp:index/securityFirewall:SecurityFirewall firewall <instance_id>`
    

    Create SecurityFirewall Resource

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

    Constructor syntax

    new SecurityFirewall(name: string, args: SecurityFirewallArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityFirewall(resource_name: str,
                         args: SecurityFirewallArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityFirewall(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         instance_id: Optional[int] = None,
                         rules: Optional[Sequence[SecurityFirewallRuleArgs]] = None,
                         sleep: Optional[int] = None,
                         timeout: Optional[int] = None)
    func NewSecurityFirewall(ctx *Context, name string, args SecurityFirewallArgs, opts ...ResourceOption) (*SecurityFirewall, error)
    public SecurityFirewall(string name, SecurityFirewallArgs args, CustomResourceOptions? opts = null)
    public SecurityFirewall(String name, SecurityFirewallArgs args)
    public SecurityFirewall(String name, SecurityFirewallArgs args, CustomResourceOptions options)
    
    type: cloudamqp:SecurityFirewall
    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 SecurityFirewallArgs
    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 SecurityFirewallArgs
    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 SecurityFirewallArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityFirewallArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityFirewallArgs
    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 securityFirewallResource = new CloudAmqp.SecurityFirewall("securityFirewallResource", new()
    {
        InstanceId = 0,
        Rules = new[]
        {
            new CloudAmqp.Inputs.SecurityFirewallRuleArgs
            {
                Ip = "string",
                Description = "string",
                Ports = new[]
                {
                    0,
                },
                Services = new[]
                {
                    "string",
                },
            },
        },
        Sleep = 0,
        Timeout = 0,
    });
    
    example, err := cloudamqp.NewSecurityFirewall(ctx, "securityFirewallResource", &cloudamqp.SecurityFirewallArgs{
    	InstanceId: pulumi.Int(0),
    	Rules: cloudamqp.SecurityFirewallRuleArray{
    		&cloudamqp.SecurityFirewallRuleArgs{
    			Ip:          pulumi.String("string"),
    			Description: pulumi.String("string"),
    			Ports: pulumi.IntArray{
    				pulumi.Int(0),
    			},
    			Services: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Sleep:   pulumi.Int(0),
    	Timeout: pulumi.Int(0),
    })
    
    var securityFirewallResource = new SecurityFirewall("securityFirewallResource", SecurityFirewallArgs.builder()
        .instanceId(0)
        .rules(SecurityFirewallRuleArgs.builder()
            .ip("string")
            .description("string")
            .ports(0)
            .services("string")
            .build())
        .sleep(0)
        .timeout(0)
        .build());
    
    security_firewall_resource = cloudamqp.SecurityFirewall("securityFirewallResource",
        instance_id=0,
        rules=[{
            "ip": "string",
            "description": "string",
            "ports": [0],
            "services": ["string"],
        }],
        sleep=0,
        timeout=0)
    
    const securityFirewallResource = new cloudamqp.SecurityFirewall("securityFirewallResource", {
        instanceId: 0,
        rules: [{
            ip: "string",
            description: "string",
            ports: [0],
            services: ["string"],
        }],
        sleep: 0,
        timeout: 0,
    });
    
    type: cloudamqp:SecurityFirewall
    properties:
        instanceId: 0
        rules:
            - description: string
              ip: string
              ports:
                - 0
              services:
                - string
        sleep: 0
        timeout: 0
    

    SecurityFirewall 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 SecurityFirewall resource accepts the following input properties:

    InstanceId int
    The CloudAMQP instance ID.
    Rules List<Pulumi.CloudAmqp.Inputs.SecurityFirewallRule>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    Sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    Timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    InstanceId int
    The CloudAMQP instance ID.
    Rules []SecurityFirewallRuleArgs
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    Sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    Timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId Integer
    The CloudAMQP instance ID.
    rules List<SecurityFirewallRule>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep Integer
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout Integer

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId number
    The CloudAMQP instance ID.
    rules SecurityFirewallRule[]
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep number
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout number

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instance_id int
    The CloudAMQP instance ID.
    rules Sequence[SecurityFirewallRuleArgs]
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId Number
    The CloudAMQP instance ID.
    rules List<Property Map>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep Number
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout Number

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityFirewall 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 SecurityFirewall Resource

    Get an existing SecurityFirewall 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?: SecurityFirewallState, opts?: CustomResourceOptions): SecurityFirewall
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[int] = None,
            rules: Optional[Sequence[SecurityFirewallRuleArgs]] = None,
            sleep: Optional[int] = None,
            timeout: Optional[int] = None) -> SecurityFirewall
    func GetSecurityFirewall(ctx *Context, name string, id IDInput, state *SecurityFirewallState, opts ...ResourceOption) (*SecurityFirewall, error)
    public static SecurityFirewall Get(string name, Input<string> id, SecurityFirewallState? state, CustomResourceOptions? opts = null)
    public static SecurityFirewall get(String name, Output<String> id, SecurityFirewallState 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.
    The following state arguments are supported:
    InstanceId int
    The CloudAMQP instance ID.
    Rules List<Pulumi.CloudAmqp.Inputs.SecurityFirewallRule>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    Sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    Timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    InstanceId int
    The CloudAMQP instance ID.
    Rules []SecurityFirewallRuleArgs
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    Sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    Timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId Integer
    The CloudAMQP instance ID.
    rules List<SecurityFirewallRule>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep Integer
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout Integer

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId number
    The CloudAMQP instance ID.
    rules SecurityFirewallRule[]
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep number
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout number

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instance_id int
    The CloudAMQP instance ID.
    rules Sequence[SecurityFirewallRuleArgs]
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep int
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout int

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    instanceId Number
    The CloudAMQP instance ID.
    rules List<Property Map>
    An array of rules, minimum of 1 needs to be configured. Each rules block consists of the field documented below.
    sleep Number
    Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
    timeout Number

    Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.


    The rules block consists of:

    Supporting Types

    SecurityFirewallRule, SecurityFirewallRuleArgs

    Ip string
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    Description string

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    Ports List<int>
    Custom ports to be opened
    Services List<string>
    Pre-defined service ports, see table below
    Ip string
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    Description string

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    Ports []int
    Custom ports to be opened
    Services []string
    Pre-defined service ports, see table below
    ip String
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    description String

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    ports List<Integer>
    Custom ports to be opened
    services List<String>
    Pre-defined service ports, see table below
    ip string
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    description string

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    ports number[]
    Custom ports to be opened
    services string[]
    Pre-defined service ports, see table below
    ip str
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    description str

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    ports Sequence[int]
    Custom ports to be opened
    services Sequence[str]
    Pre-defined service ports, see table below
    ip String
    CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
    description String

    Description name of the rule. e.g. Default.

    Pre-defined services for RabbitMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |

    Pre-defined services for LavinMQ:

    | Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 |

    ports List<Number>
    Custom ports to be opened
    services List<String>
    Pre-defined service ports, see table below

    Package Details

    Repository
    CloudAMQP pulumi/pulumi-cloudamqp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudamqp Terraform Provider.
    cloudamqp logo
    CloudAMQP v3.20.2 published on Tuesday, Oct 29, 2024 by Pulumi