SecurityGroup
Create a SecurityGroup Resource
new SecurityGroup(name: string, args?: SecurityGroupArgs, opts?: CustomResourceOptions);def SecurityGroup(resource_name, opts=None, description=None, inner_access=None, inner_access_policy=None, name=None, resource_group_id=None, security_group_type=None, tags=None, vpc_id=None, __props__=None);func NewSecurityGroup(ctx *Context, name string, args *SecurityGroupArgs, opts ...ResourceOption) (*SecurityGroup, error)public SecurityGroup(string name, SecurityGroupArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SecurityGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SecurityGroup resource accepts the following input properties:
- Description string
The security group description. Defaults to null.
- Inner
Access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- Inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- Name string
The name of the security group. Defaults to null.
- Resource
Group stringId The Id of resource group which the security_group belongs.
- Security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The VPC ID.
- Description string
The security group description. Defaults to null.
- Inner
Access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- Inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- Name string
The name of the security group. Defaults to null.
- Resource
Group stringId The Id of resource group which the security_group belongs.
- Security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The VPC ID.
- description string
The security group description. Defaults to null.
- inner
Access boolean Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- name string
The name of the security group. Defaults to null.
- resource
Group stringId The Id of resource group which the security_group belongs.
- security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The VPC ID.
- description str
The security group description. Defaults to null.
- inner_
access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- inner_
access_ strpolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- name str
The name of the security group. Defaults to null.
- resource_
group_ strid The Id of resource group which the security_group belongs.
- security_
group_ strtype The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- Dict[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The VPC ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroup resource produces the following output properties:
Look up an Existing SecurityGroup Resource
Get an existing SecurityGroup 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?: SecurityGroupState, opts?: CustomResourceOptions): SecurityGroupstatic get(resource_name, id, opts=None, description=None, inner_access=None, inner_access_policy=None, name=None, resource_group_id=None, security_group_type=None, tags=None, vpc_id=None, __props__=None);func GetSecurityGroup(ctx *Context, name string, id IDInput, state *SecurityGroupState, opts ...ResourceOption) (*SecurityGroup, error)public static SecurityGroup Get(string name, Input<string> id, SecurityGroupState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Description string
The security group description. Defaults to null.
- Inner
Access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- Inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- Name string
The name of the security group. Defaults to null.
- Resource
Group stringId The Id of resource group which the security_group belongs.
- Security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The VPC ID.
- Description string
The security group description. Defaults to null.
- Inner
Access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- Inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- Name string
The name of the security group. Defaults to null.
- Resource
Group stringId The Id of resource group which the security_group belongs.
- Security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The VPC ID.
- description string
The security group description. Defaults to null.
- inner
Access boolean Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- inner
Access stringPolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- name string
The name of the security group. Defaults to null.
- resource
Group stringId The Id of resource group which the security_group belongs.
- security
Group stringType The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The VPC ID.
- description str
The security group description. Defaults to null.
- inner_
access bool Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.
- inner_
access_ strpolicy Whether to allow both machines to access each other on all ports in the same security group. Valid values: [“Accept”, “Drop”]
- name str
The name of the security group. Defaults to null.
- resource_
group_ strid The Id of resource group which the security_group belongs.
- security_
group_ strtype The type of the security group. Valid values:
normal: basic security group.enterprise: advanced security group For more information.- Dict[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The VPC ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.