SecurityGroup

Create a SecurityGroup Resource

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);
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.

InnerAccess bool

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

InnerAccessPolicy string

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.

ResourceGroupId string

The Id of resource group which the security_group belongs.

SecurityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

VpcId string

The VPC ID.

Description string

The security group description. Defaults to null.

InnerAccess bool

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

InnerAccessPolicy string

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.

ResourceGroupId string

The Id of resource group which the security_group belongs.

SecurityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

VpcId string

The VPC ID.

description string

The security group description. Defaults to null.

innerAccess boolean

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

innerAccessPolicy string

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.

resourceGroupId string

The Id of resource group which the security_group belongs.

securityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

vpcId 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.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

inner_access_policy str

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_id str

The Id of resource group which the security_group belongs.

security_group_type str

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

tags 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:

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.

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): SecurityGroup
static 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.

InnerAccess bool

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

InnerAccessPolicy string

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.

ResourceGroupId string

The Id of resource group which the security_group belongs.

SecurityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

VpcId string

The VPC ID.

Description string

The security group description. Defaults to null.

InnerAccess bool

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

InnerAccessPolicy string

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.

ResourceGroupId string

The Id of resource group which the security_group belongs.

SecurityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

VpcId string

The VPC ID.

description string

The security group description. Defaults to null.

innerAccess boolean

Field ‘inner_access’ has been deprecated from provider version 1.55.3. Use ‘inner_access_policy’ replaces it.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

innerAccessPolicy string

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.

resourceGroupId string

The Id of resource group which the security_group belongs.

securityGroupType string

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

vpcId 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.

Deprecated: Field 'inner_access' has been deprecated from provider version 1.55.3. Use 'inner_access_policy' replaces it.

inner_access_policy str

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_id str

The Id of resource group which the security_group belongs.

security_group_type str

The type of the security group. Valid values: normal: basic security group. enterprise: advanced security group For more information.

tags 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 alicloud Terraform Provider.