dome9.CloudSecurityGroupRule
Explore with Pulumi AI
Create CloudSecurityGroupRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudSecurityGroupRule(name: string, args: CloudSecurityGroupRuleArgs, opts?: CustomResourceOptions);
@overload
def CloudSecurityGroupRule(resource_name: str,
args: CloudSecurityGroupRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudSecurityGroupRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
dome9_security_group_id: Optional[str] = None,
cloud_security_group_rule_id: Optional[str] = None,
services: Optional[Sequence[CloudSecurityGroupRuleServiceArgs]] = None)
func NewCloudSecurityGroupRule(ctx *Context, name string, args CloudSecurityGroupRuleArgs, opts ...ResourceOption) (*CloudSecurityGroupRule, error)
public CloudSecurityGroupRule(string name, CloudSecurityGroupRuleArgs args, CustomResourceOptions? opts = null)
public CloudSecurityGroupRule(String name, CloudSecurityGroupRuleArgs args)
public CloudSecurityGroupRule(String name, CloudSecurityGroupRuleArgs args, CustomResourceOptions options)
type: dome9:CloudSecurityGroupRule
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. CloudSecurityGroupRuleArgs - 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. CloudSecurityGroupRuleArgs - 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. CloudSecurityGroupRuleArgs - 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. CloudSecurityGroupRuleArgs - 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. CloudSecurityGroupRuleArgs - 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 cloudSecurityGroupRuleResource = new Dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource", new()
{
Dome9SecurityGroupId = "string",
CloudSecurityGroupRuleId = "string",
Services = new[]
{
new Dome9.Inputs.CloudSecurityGroupRuleServiceArgs
{
Inbounds = new[]
{
new Dome9.Inputs.CloudSecurityGroupRuleServiceInboundArgs
{
Description = "string",
Name = "string",
OpenForAll = false,
Port = "string",
ProtocolType = "string",
Scopes = new[]
{
new Dome9.Inputs.CloudSecurityGroupRuleServiceInboundScopeArgs
{
Data =
{
{ "string", "string" },
},
Type = "string",
},
},
},
},
Outbounds = new[]
{
new Dome9.Inputs.CloudSecurityGroupRuleServiceOutboundArgs
{
Description = "string",
Name = "string",
OpenForAll = false,
Port = "string",
ProtocolType = "string",
Scopes = new[]
{
new Dome9.Inputs.CloudSecurityGroupRuleServiceOutboundScopeArgs
{
Data =
{
{ "string", "string" },
},
Type = "string",
},
},
},
},
},
},
});
example, err := dome9.NewCloudSecurityGroupRule(ctx, "cloudSecurityGroupRuleResource", &dome9.CloudSecurityGroupRuleArgs{
Dome9SecurityGroupId: pulumi.String("string"),
CloudSecurityGroupRuleId: pulumi.String("string"),
Services: dome9.CloudSecurityGroupRuleServiceArray{
&dome9.CloudSecurityGroupRuleServiceArgs{
Inbounds: dome9.CloudSecurityGroupRuleServiceInboundArray{
&dome9.CloudSecurityGroupRuleServiceInboundArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OpenForAll: pulumi.Bool(false),
Port: pulumi.String("string"),
ProtocolType: pulumi.String("string"),
Scopes: dome9.CloudSecurityGroupRuleServiceInboundScopeArray{
&dome9.CloudSecurityGroupRuleServiceInboundScopeArgs{
Data: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
},
},
Outbounds: dome9.CloudSecurityGroupRuleServiceOutboundArray{
&dome9.CloudSecurityGroupRuleServiceOutboundArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OpenForAll: pulumi.Bool(false),
Port: pulumi.String("string"),
ProtocolType: pulumi.String("string"),
Scopes: dome9.CloudSecurityGroupRuleServiceOutboundScopeArray{
&dome9.CloudSecurityGroupRuleServiceOutboundScopeArgs{
Data: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
},
},
},
},
})
var cloudSecurityGroupRuleResource = new CloudSecurityGroupRule("cloudSecurityGroupRuleResource", CloudSecurityGroupRuleArgs.builder()
.dome9SecurityGroupId("string")
.cloudSecurityGroupRuleId("string")
.services(CloudSecurityGroupRuleServiceArgs.builder()
.inbounds(CloudSecurityGroupRuleServiceInboundArgs.builder()
.description("string")
.name("string")
.openForAll(false)
.port("string")
.protocolType("string")
.scopes(CloudSecurityGroupRuleServiceInboundScopeArgs.builder()
.data(Map.of("string", "string"))
.type("string")
.build())
.build())
.outbounds(CloudSecurityGroupRuleServiceOutboundArgs.builder()
.description("string")
.name("string")
.openForAll(false)
.port("string")
.protocolType("string")
.scopes(CloudSecurityGroupRuleServiceOutboundScopeArgs.builder()
.data(Map.of("string", "string"))
.type("string")
.build())
.build())
.build())
.build());
cloud_security_group_rule_resource = dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource",
dome9_security_group_id="string",
cloud_security_group_rule_id="string",
services=[{
"inbounds": [{
"description": "string",
"name": "string",
"open_for_all": False,
"port": "string",
"protocol_type": "string",
"scopes": [{
"data": {
"string": "string",
},
"type": "string",
}],
}],
"outbounds": [{
"description": "string",
"name": "string",
"open_for_all": False,
"port": "string",
"protocol_type": "string",
"scopes": [{
"data": {
"string": "string",
},
"type": "string",
}],
}],
}])
const cloudSecurityGroupRuleResource = new dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource", {
dome9SecurityGroupId: "string",
cloudSecurityGroupRuleId: "string",
services: [{
inbounds: [{
description: "string",
name: "string",
openForAll: false,
port: "string",
protocolType: "string",
scopes: [{
data: {
string: "string",
},
type: "string",
}],
}],
outbounds: [{
description: "string",
name: "string",
openForAll: false,
port: "string",
protocolType: "string",
scopes: [{
data: {
string: "string",
},
type: "string",
}],
}],
}],
});
type: dome9:CloudSecurityGroupRule
properties:
cloudSecurityGroupRuleId: string
dome9SecurityGroupId: string
services:
- inbounds:
- description: string
name: string
openForAll: false
port: string
protocolType: string
scopes:
- data:
string: string
type: string
outbounds:
- description: string
name: string
openForAll: false
port: string
protocolType: string
scopes:
- data:
string: string
type: string
CloudSecurityGroupRule 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 CloudSecurityGroupRule resource accepts the following input properties:
- Dome9Security
Group Id This property is required. string - Cloud
Security stringGroup Rule Id - Services
List<Cloud
Security Group Rule Service>
- Dome9Security
Group Id This property is required. string - Cloud
Security stringGroup Rule Id - Services
[]Cloud
Security Group Rule Service Args
- dome9Security
Group Id This property is required. String - cloud
Security StringGroup Rule Id - services
List<Cloud
Security Group Rule Service>
- dome9Security
Group Id This property is required. string - cloud
Security stringGroup Rule Id - services
Cloud
Security Group Rule Service[]
- dome9_
security_ group_ id This property is required. str - cloud_
security_ strgroup_ rule_ id - services
Sequence[Cloud
Security Group Rule Service Args]
- dome9Security
Group Id This property is required. String - cloud
Security StringGroup Rule Id - services List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudSecurityGroupRule 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 CloudSecurityGroupRule Resource
Get an existing CloudSecurityGroupRule 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?: CloudSecurityGroupRuleState, opts?: CustomResourceOptions): CloudSecurityGroupRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_security_group_rule_id: Optional[str] = None,
dome9_security_group_id: Optional[str] = None,
services: Optional[Sequence[CloudSecurityGroupRuleServiceArgs]] = None) -> CloudSecurityGroupRule
func GetCloudSecurityGroupRule(ctx *Context, name string, id IDInput, state *CloudSecurityGroupRuleState, opts ...ResourceOption) (*CloudSecurityGroupRule, error)
public static CloudSecurityGroupRule Get(string name, Input<string> id, CloudSecurityGroupRuleState? state, CustomResourceOptions? opts = null)
public static CloudSecurityGroupRule get(String name, Output<String> id, CloudSecurityGroupRuleState state, CustomResourceOptions options)
resources: _: type: dome9:CloudSecurityGroupRule 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.
Supporting Types
CloudSecurityGroupRuleService, CloudSecurityGroupRuleServiceArgs
CloudSecurityGroupRuleServiceInbound, CloudSecurityGroupRuleServiceInboundArgs
- Description string
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
List<Cloud
Security Group Rule Service Inbound Scope>
- Description string
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
[]Cloud
Security Group Rule Service Inbound Scope
- description String
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes
List<Cloud
Security Group Rule Service Inbound Scope>
- description string
- name string
- open
For booleanAll - port string
- protocol
Type string - scopes
Cloud
Security Group Rule Service Inbound Scope[]
- description String
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes List<Property Map>
CloudSecurityGroupRuleServiceInboundScope, CloudSecurityGroupRuleServiceInboundScopeArgs
CloudSecurityGroupRuleServiceOutbound, CloudSecurityGroupRuleServiceOutboundArgs
- Description string
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
List<Cloud
Security Group Rule Service Outbound Scope>
- Description string
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
[]Cloud
Security Group Rule Service Outbound Scope
- description String
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes
List<Cloud
Security Group Rule Service Outbound Scope>
- description string
- name string
- open
For booleanAll - port string
- protocol
Type string - scopes
Cloud
Security Group Rule Service Outbound Scope[]
- description String
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes List<Property Map>
CloudSecurityGroupRuleServiceOutboundScope, CloudSecurityGroupRuleServiceOutboundScopeArgs
Package Details
- Repository
- dome9 dome9/terraform-provider-dome9
- License
- Notes
- This Pulumi package is based on the
dome9
Terraform Provider.