cloudamqp.SecurityFirewall
Explore with Pulumi AI
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=[cloudamqp.SecurityFirewallRuleArgs(
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
The SecurityFirewall resource accepts the following input properties:
- Instance
Id int - Instance identifier
- Rules
List<Pulumi.
Cloud Amqp. Inputs. Security Firewall Rule> - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- Timeout int
- Configurable timeout time in seconds for firewall configuration
- Instance
Id int - Instance identifier
- Rules
[]Security
Firewall Rule Args - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- Timeout int
- Configurable timeout time in seconds for firewall configuration
- instance
Id Integer - Instance identifier
- rules
List<Security
Firewall Rule> - sleep Integer
- Configurable sleep time in seconds between retries for firewall configuration
- timeout Integer
- Configurable timeout time in seconds for firewall configuration
- instance
Id number - Instance identifier
- rules
Security
Firewall Rule[] - sleep number
- Configurable sleep time in seconds between retries for firewall configuration
- timeout number
- Configurable timeout time in seconds for firewall configuration
- instance_
id int - Instance identifier
- rules
Sequence[Security
Firewall Rule Args] - sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- timeout int
- Configurable timeout time in seconds for firewall configuration
- instance
Id Number - Instance identifier
- rules List<Property Map>
- sleep Number
- Configurable sleep time in seconds between retries for firewall configuration
- timeout Number
- Configurable timeout time in seconds for firewall configuration
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.
- Instance
Id int - Instance identifier
- Rules
List<Pulumi.
Cloud Amqp. Inputs. Security Firewall Rule> - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- Timeout int
- Configurable timeout time in seconds for firewall configuration
- Instance
Id int - Instance identifier
- Rules
[]Security
Firewall Rule Args - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- Timeout int
- Configurable timeout time in seconds for firewall configuration
- instance
Id Integer - Instance identifier
- rules
List<Security
Firewall Rule> - sleep Integer
- Configurable sleep time in seconds between retries for firewall configuration
- timeout Integer
- Configurable timeout time in seconds for firewall configuration
- instance
Id number - Instance identifier
- rules
Security
Firewall Rule[] - sleep number
- Configurable sleep time in seconds between retries for firewall configuration
- timeout number
- Configurable timeout time in seconds for firewall configuration
- instance_
id int - Instance identifier
- rules
Sequence[Security
Firewall Rule Args] - sleep int
- Configurable sleep time in seconds between retries for firewall configuration
- timeout int
- Configurable timeout time in seconds for firewall configuration
- instance
Id Number - Instance identifier
- rules List<Property Map>
- sleep Number
- Configurable sleep time in seconds between retries for firewall configuration
- timeout Number
- Configurable timeout time in seconds for firewall configuration
Supporting Types
SecurityFirewallRule, SecurityFirewallRuleArgs
- Ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- Description string
- Naming descripton e.g. 'Default'
- Ports List<int>
- Custom ports between 0 - 65554
- Services List<string>
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
- Ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- Description string
- Naming descripton e.g. 'Default'
- Ports []int
- Custom ports between 0 - 65554
- Services []string
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
- ip String
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description String
- Naming descripton e.g. 'Default'
- ports List<Integer>
- Custom ports between 0 - 65554
- services List<String>
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
- ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description string
- Naming descripton e.g. 'Default'
- ports number[]
- Custom ports between 0 - 65554
- services string[]
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
- ip str
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description str
- Naming descripton e.g. 'Default'
- ports Sequence[int]
- Custom ports between 0 - 65554
- services Sequence[str]
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
- ip String
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description String
- Naming descripton e.g. 'Default'
- ports List<Number>
- Custom ports between 0 - 65554
- services List<String>
- Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.