Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.VpcDefaultSecurityGroup
Explore with Pulumi AI
Create VpcDefaultSecurityGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcDefaultSecurityGroup(name: string, args: VpcDefaultSecurityGroupArgs, opts?: CustomResourceOptions);
@overload
def VpcDefaultSecurityGroup(resource_name: str,
args: VpcDefaultSecurityGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcDefaultSecurityGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
description: Optional[str] = None,
egresses: Optional[Sequence[VpcDefaultSecurityGroupEgressArgs]] = None,
folder_id: Optional[str] = None,
ingresses: Optional[Sequence[VpcDefaultSecurityGroupIngressArgs]] = None,
labels: Optional[Mapping[str, str]] = None)
func NewVpcDefaultSecurityGroup(ctx *Context, name string, args VpcDefaultSecurityGroupArgs, opts ...ResourceOption) (*VpcDefaultSecurityGroup, error)
public VpcDefaultSecurityGroup(string name, VpcDefaultSecurityGroupArgs args, CustomResourceOptions? opts = null)
public VpcDefaultSecurityGroup(String name, VpcDefaultSecurityGroupArgs args)
public VpcDefaultSecurityGroup(String name, VpcDefaultSecurityGroupArgs args, CustomResourceOptions options)
type: yandex:VpcDefaultSecurityGroup
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 VpcDefaultSecurityGroupArgs
- 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 VpcDefaultSecurityGroupArgs
- 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 VpcDefaultSecurityGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcDefaultSecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcDefaultSecurityGroupArgs
- 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 vpcDefaultSecurityGroupResource = new Yandex.VpcDefaultSecurityGroup("vpcDefaultSecurityGroupResource", new()
{
NetworkId = "string",
Description = "string",
Egresses = new[]
{
new Yandex.Inputs.VpcDefaultSecurityGroupEgressArgs
{
Protocol = "string",
Description = "string",
FromPort = 0,
Id = "string",
Labels =
{
{ "string", "string" },
},
Port = 0,
PredefinedTarget = "string",
SecurityGroupId = "string",
ToPort = 0,
V4CidrBlocks = new[]
{
"string",
},
V6CidrBlocks = new[]
{
"string",
},
},
},
FolderId = "string",
Ingresses = new[]
{
new Yandex.Inputs.VpcDefaultSecurityGroupIngressArgs
{
Protocol = "string",
Description = "string",
FromPort = 0,
Id = "string",
Labels =
{
{ "string", "string" },
},
Port = 0,
PredefinedTarget = "string",
SecurityGroupId = "string",
ToPort = 0,
V4CidrBlocks = new[]
{
"string",
},
V6CidrBlocks = new[]
{
"string",
},
},
},
Labels =
{
{ "string", "string" },
},
});
example, err := yandex.NewVpcDefaultSecurityGroup(ctx, "vpcDefaultSecurityGroupResource", &yandex.VpcDefaultSecurityGroupArgs{
NetworkId: pulumi.String("string"),
Description: pulumi.String("string"),
Egresses: yandex.VpcDefaultSecurityGroupEgressArray{
&yandex.VpcDefaultSecurityGroupEgressArgs{
Protocol: pulumi.String("string"),
Description: pulumi.String("string"),
FromPort: pulumi.Int(0),
Id: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Port: pulumi.Int(0),
PredefinedTarget: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ToPort: pulumi.Int(0),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
V6CidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
},
},
FolderId: pulumi.String("string"),
Ingresses: yandex.VpcDefaultSecurityGroupIngressArray{
&yandex.VpcDefaultSecurityGroupIngressArgs{
Protocol: pulumi.String("string"),
Description: pulumi.String("string"),
FromPort: pulumi.Int(0),
Id: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Port: pulumi.Int(0),
PredefinedTarget: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ToPort: pulumi.Int(0),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
V6CidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var vpcDefaultSecurityGroupResource = new VpcDefaultSecurityGroup("vpcDefaultSecurityGroupResource", VpcDefaultSecurityGroupArgs.builder()
.networkId("string")
.description("string")
.egresses(VpcDefaultSecurityGroupEgressArgs.builder()
.protocol("string")
.description("string")
.fromPort(0)
.id("string")
.labels(Map.of("string", "string"))
.port(0)
.predefinedTarget("string")
.securityGroupId("string")
.toPort(0)
.v4CidrBlocks("string")
.v6CidrBlocks("string")
.build())
.folderId("string")
.ingresses(VpcDefaultSecurityGroupIngressArgs.builder()
.protocol("string")
.description("string")
.fromPort(0)
.id("string")
.labels(Map.of("string", "string"))
.port(0)
.predefinedTarget("string")
.securityGroupId("string")
.toPort(0)
.v4CidrBlocks("string")
.v6CidrBlocks("string")
.build())
.labels(Map.of("string", "string"))
.build());
vpc_default_security_group_resource = yandex.VpcDefaultSecurityGroup("vpcDefaultSecurityGroupResource",
network_id="string",
description="string",
egresses=[yandex.VpcDefaultSecurityGroupEgressArgs(
protocol="string",
description="string",
from_port=0,
id="string",
labels={
"string": "string",
},
port=0,
predefined_target="string",
security_group_id="string",
to_port=0,
v4_cidr_blocks=["string"],
v6_cidr_blocks=["string"],
)],
folder_id="string",
ingresses=[yandex.VpcDefaultSecurityGroupIngressArgs(
protocol="string",
description="string",
from_port=0,
id="string",
labels={
"string": "string",
},
port=0,
predefined_target="string",
security_group_id="string",
to_port=0,
v4_cidr_blocks=["string"],
v6_cidr_blocks=["string"],
)],
labels={
"string": "string",
})
const vpcDefaultSecurityGroupResource = new yandex.VpcDefaultSecurityGroup("vpcDefaultSecurityGroupResource", {
networkId: "string",
description: "string",
egresses: [{
protocol: "string",
description: "string",
fromPort: 0,
id: "string",
labels: {
string: "string",
},
port: 0,
predefinedTarget: "string",
securityGroupId: "string",
toPort: 0,
v4CidrBlocks: ["string"],
v6CidrBlocks: ["string"],
}],
folderId: "string",
ingresses: [{
protocol: "string",
description: "string",
fromPort: 0,
id: "string",
labels: {
string: "string",
},
port: 0,
predefinedTarget: "string",
securityGroupId: "string",
toPort: 0,
v4CidrBlocks: ["string"],
v6CidrBlocks: ["string"],
}],
labels: {
string: "string",
},
});
type: yandex:VpcDefaultSecurityGroup
properties:
description: string
egresses:
- description: string
fromPort: 0
id: string
labels:
string: string
port: 0
predefinedTarget: string
protocol: string
securityGroupId: string
toPort: 0
v4CidrBlocks:
- string
v6CidrBlocks:
- string
folderId: string
ingresses:
- description: string
fromPort: 0
id: string
labels:
string: string
port: 0
predefinedTarget: string
protocol: string
securityGroupId: string
toPort: 0
v4CidrBlocks:
- string
v6CidrBlocks:
- string
labels:
string: string
networkId: string
VpcDefaultSecurityGroup 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 VpcDefaultSecurityGroup resource accepts the following input properties:
- Network
Id string - ID of the network this security group belongs to.
- Description string
- Description of the security group.
- Egresses
List<Vpc
Default Security Group Egress> - A list of egress rules. The structure is documented below.
- Folder
Id string - ID of the folder this security group belongs to.
- Ingresses
List<Vpc
Default Security Group Ingress> - A list of ingress rules.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Network
Id string - ID of the network this security group belongs to.
- Description string
- Description of the security group.
- Egresses
[]Vpc
Default Security Group Egress Args - A list of egress rules. The structure is documented below.
- Folder
Id string - ID of the folder this security group belongs to.
- Ingresses
[]Vpc
Default Security Group Ingress Args - A list of ingress rules.
- Labels map[string]string
- Labels to assign to this security group.
- network
Id String - ID of the network this security group belongs to.
- description String
- Description of the security group.
- egresses
List<Vpc
Default Security Group Egress> - A list of egress rules. The structure is documented below.
- folder
Id String - ID of the folder this security group belongs to.
- ingresses
List<Vpc
Default Security Group Ingress> - A list of ingress rules.
- labels Map<String,String>
- Labels to assign to this security group.
- network
Id string - ID of the network this security group belongs to.
- description string
- Description of the security group.
- egresses
Vpc
Default Security Group Egress[] - A list of egress rules. The structure is documented below.
- folder
Id string - ID of the folder this security group belongs to.
- ingresses
Vpc
Default Security Group Ingress[] - A list of ingress rules.
- labels {[key: string]: string}
- Labels to assign to this security group.
- network_
id str - ID of the network this security group belongs to.
- description str
- Description of the security group.
- egresses
Sequence[Vpc
Default Security Group Egress Args] - A list of egress rules. The structure is documented below.
- folder_
id str - ID of the folder this security group belongs to.
- ingresses
Sequence[Vpc
Default Security Group Ingress Args] - A list of ingress rules.
- labels Mapping[str, str]
- Labels to assign to this security group.
- network
Id String - ID of the network this security group belongs to.
- description String
- Description of the security group.
- egresses List<Property Map>
- A list of egress rules. The structure is documented below.
- folder
Id String - ID of the folder this security group belongs to.
- ingresses List<Property Map>
- A list of ingress rules.
- labels Map<String>
- Labels to assign to this security group.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcDefaultSecurityGroup resource produces the following output properties:
- created_
at str - Creation timestamp of this security group.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of this security group.
- status str
- Status of this security group.
Look up Existing VpcDefaultSecurityGroup Resource
Get an existing VpcDefaultSecurityGroup 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?: VpcDefaultSecurityGroupState, opts?: CustomResourceOptions): VpcDefaultSecurityGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
egresses: Optional[Sequence[VpcDefaultSecurityGroupEgressArgs]] = None,
folder_id: Optional[str] = None,
ingresses: Optional[Sequence[VpcDefaultSecurityGroupIngressArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
status: Optional[str] = None) -> VpcDefaultSecurityGroup
func GetVpcDefaultSecurityGroup(ctx *Context, name string, id IDInput, state *VpcDefaultSecurityGroupState, opts ...ResourceOption) (*VpcDefaultSecurityGroup, error)
public static VpcDefaultSecurityGroup Get(string name, Input<string> id, VpcDefaultSecurityGroupState? state, CustomResourceOptions? opts = null)
public static VpcDefaultSecurityGroup get(String name, Output<String> id, VpcDefaultSecurityGroupState 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.
- Created
At string - Creation timestamp of this security group.
- Description string
- Description of the security group.
- Egresses
List<Vpc
Default Security Group Egress> - A list of egress rules. The structure is documented below.
- Folder
Id string - ID of the folder this security group belongs to.
- Ingresses
List<Vpc
Default Security Group Ingress> - A list of ingress rules.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Name string
- Name of this security group.
- Network
Id string - ID of the network this security group belongs to.
- Status string
- Status of this security group.
- Created
At string - Creation timestamp of this security group.
- Description string
- Description of the security group.
- Egresses
[]Vpc
Default Security Group Egress Args - A list of egress rules. The structure is documented below.
- Folder
Id string - ID of the folder this security group belongs to.
- Ingresses
[]Vpc
Default Security Group Ingress Args - A list of ingress rules.
- Labels map[string]string
- Labels to assign to this security group.
- Name string
- Name of this security group.
- Network
Id string - ID of the network this security group belongs to.
- Status string
- Status of this security group.
- created
At String - Creation timestamp of this security group.
- description String
- Description of the security group.
- egresses
List<Vpc
Default Security Group Egress> - A list of egress rules. The structure is documented below.
- folder
Id String - ID of the folder this security group belongs to.
- ingresses
List<Vpc
Default Security Group Ingress> - A list of ingress rules.
- labels Map<String,String>
- Labels to assign to this security group.
- name String
- Name of this security group.
- network
Id String - ID of the network this security group belongs to.
- status String
- Status of this security group.
- created
At string - Creation timestamp of this security group.
- description string
- Description of the security group.
- egresses
Vpc
Default Security Group Egress[] - A list of egress rules. The structure is documented below.
- folder
Id string - ID of the folder this security group belongs to.
- ingresses
Vpc
Default Security Group Ingress[] - A list of ingress rules.
- labels {[key: string]: string}
- Labels to assign to this security group.
- name string
- Name of this security group.
- network
Id string - ID of the network this security group belongs to.
- status string
- Status of this security group.
- created_
at str - Creation timestamp of this security group.
- description str
- Description of the security group.
- egresses
Sequence[Vpc
Default Security Group Egress Args] - A list of egress rules. The structure is documented below.
- folder_
id str - ID of the folder this security group belongs to.
- ingresses
Sequence[Vpc
Default Security Group Ingress Args] - A list of ingress rules.
- labels Mapping[str, str]
- Labels to assign to this security group.
- name str
- Name of this security group.
- network_
id str - ID of the network this security group belongs to.
- status str
- Status of this security group.
- created
At String - Creation timestamp of this security group.
- description String
- Description of the security group.
- egresses List<Property Map>
- A list of egress rules. The structure is documented below.
- folder
Id String - ID of the folder this security group belongs to.
- ingresses List<Property Map>
- A list of ingress rules.
- labels Map<String>
- Labels to assign to this security group.
- name String
- Name of this security group.
- network
Id String - ID of the network this security group belongs to.
- status String
- Status of this security group.
Supporting Types
VpcDefaultSecurityGroupEgress, VpcDefaultSecurityGroupEgressArgs
- Protocol string
- Description string
- Description of the security group.
- From
Port int - Id string
- Id of the security group.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Port int
- Predefined
Target string - Security
Group stringId - To
Port int - V4Cidr
Blocks List<string> - V6Cidr
Blocks List<string>
- Protocol string
- Description string
- Description of the security group.
- From
Port int - Id string
- Id of the security group.
- Labels map[string]string
- Labels to assign to this security group.
- Port int
- Predefined
Target string - Security
Group stringId - To
Port int - V4Cidr
Blocks []string - V6Cidr
Blocks []string
- protocol String
- description String
- Description of the security group.
- from
Port Integer - id String
- Id of the security group.
- labels Map<String,String>
- Labels to assign to this security group.
- port Integer
- predefined
Target String - security
Group StringId - to
Port Integer - v4Cidr
Blocks List<String> - v6Cidr
Blocks List<String>
- protocol string
- description string
- Description of the security group.
- from
Port number - id string
- Id of the security group.
- labels {[key: string]: string}
- Labels to assign to this security group.
- port number
- predefined
Target string - security
Group stringId - to
Port number - v4Cidr
Blocks string[] - v6Cidr
Blocks string[]
- protocol str
- description str
- Description of the security group.
- from_
port int - id str
- Id of the security group.
- labels Mapping[str, str]
- Labels to assign to this security group.
- port int
- predefined_
target str - security_
group_ strid - to_
port int - v4_
cidr_ Sequence[str]blocks - v6_
cidr_ Sequence[str]blocks
- protocol String
- description String
- Description of the security group.
- from
Port Number - id String
- Id of the security group.
- labels Map<String>
- Labels to assign to this security group.
- port Number
- predefined
Target String - security
Group StringId - to
Port Number - v4Cidr
Blocks List<String> - v6Cidr
Blocks List<String>
VpcDefaultSecurityGroupIngress, VpcDefaultSecurityGroupIngressArgs
- Protocol string
- Description string
- Description of the security group.
- From
Port int - Id string
- Id of the security group.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Port int
- Predefined
Target string - Security
Group stringId - To
Port int - V4Cidr
Blocks List<string> - V6Cidr
Blocks List<string>
- Protocol string
- Description string
- Description of the security group.
- From
Port int - Id string
- Id of the security group.
- Labels map[string]string
- Labels to assign to this security group.
- Port int
- Predefined
Target string - Security
Group stringId - To
Port int - V4Cidr
Blocks []string - V6Cidr
Blocks []string
- protocol String
- description String
- Description of the security group.
- from
Port Integer - id String
- Id of the security group.
- labels Map<String,String>
- Labels to assign to this security group.
- port Integer
- predefined
Target String - security
Group StringId - to
Port Integer - v4Cidr
Blocks List<String> - v6Cidr
Blocks List<String>
- protocol string
- description string
- Description of the security group.
- from
Port number - id string
- Id of the security group.
- labels {[key: string]: string}
- Labels to assign to this security group.
- port number
- predefined
Target string - security
Group stringId - to
Port number - v4Cidr
Blocks string[] - v6Cidr
Blocks string[]
- protocol str
- description str
- Description of the security group.
- from_
port int - id str
- Id of the security group.
- labels Mapping[str, str]
- Labels to assign to this security group.
- port int
- predefined_
target str - security_
group_ strid - to_
port int - v4_
cidr_ Sequence[str]blocks - v6_
cidr_ Sequence[str]blocks
- protocol String
- description String
- Description of the security group.
- from
Port Number - id String
- Id of the security group.
- labels Map<String>
- Labels to assign to this security group.
- port Number
- predefined
Target String - security
Group StringId - to
Port Number - v4Cidr
Blocks List<String> - v6Cidr
Blocks List<String>
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.