cloudamqp.SecurityFirewall
Explore with Pulumi AI
Import
cloudamqp_security_firewall
can be imported using CloudAMQP instance identifier. To
retrieve the identifier, use [CloudAMQP API list intances].
From Terraform v1.5.0, the import
block can be used to import this resource:
hcl
import {
to = cloudamqp_security_firewall.firewall
id = cloudamqp_instance.instance.id
}
Or use Terraform CLI:
$ 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
This property is required. string - The unique name of the resource.
- args
This property is required. SecurityFirewallArgs - 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. 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
This property is required. string - The unique name of the resource.
- args
This property is required. SecurityFirewallArgs - 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. SecurityFirewallArgs - 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. 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:
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- Rules
This property is required. List<Pulumi.Cloud Amqp. Inputs. Security Firewall Rule> - 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:
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- Rules
This property is required. []SecurityFirewall Rule Args - 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:
- instance
Id This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
This property is required. List<SecurityFirewall Rule> - 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:
- instance
Id This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
This property is required. SecurityFirewall Rule[] - 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 This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
This property is required. Sequence[SecurityFirewall Rule Args] - 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:
- instance
Id This property is required. Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
This property is required. 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)
resources: _: type: cloudamqp:SecurityFirewall 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.
- Instance
Id Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- Rules
List<Pulumi.
Cloud Amqp. Inputs. Security Firewall Rule> - 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:
- Instance
Id Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- Rules
[]Security
Firewall Rule Args - 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:
- instance
Id Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
List<Security
Firewall Rule> - 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:
- instance
Id Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
Security
Firewall Rule[] - 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 Changes to this property will trigger replacement.
- The CloudAMQP instance ID.
- rules
Sequence[Security
Firewall Rule Args] - 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:
- instance
Id Changes to this property will trigger replacement.
- 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
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- Ports List<int>
- Custom ports to be opened
- Services List<string>
- Pre-defined service ports, see table below
- Ip
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- Ports []int
- Custom ports to be opened
- Services []string
- Pre-defined service ports, see table below
- ip
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- ports List<Integer>
- Custom ports to be opened
- services List<String>
- Pre-defined service ports, see table below
- ip
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- ports number[]
- Custom ports to be opened
- services string[]
- Pre-defined service ports, see table below
- ip
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- ports Sequence[int]
- Custom ports to be opened
- services Sequence[str]
- Pre-defined service ports, see table below
- ip
This property is required. 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 | | MQTT | 1883 | | MQTTS | 8883 |
- 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.