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=[{
        "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=[{
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcDefaultSecurityGroup resource accepts the following input properties:
- NetworkId string
- ID of the network this security group belongs to.
- Description string
- Description of the security group.
- Egresses
List<VpcDefault Security Group Egress> 
- A list of egress rules. The structure is documented below.
- FolderId string
- ID of the folder this security group belongs to.
- Ingresses
List<VpcDefault Security Group Ingress> 
- A list of ingress rules.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- NetworkId string
- ID of the network this security group belongs to.
- Description string
- Description of the security group.
- Egresses
[]VpcDefault Security Group Egress Args 
- A list of egress rules. The structure is documented below.
- FolderId string
- ID of the folder this security group belongs to.
- Ingresses
[]VpcDefault Security Group Ingress Args 
- A list of ingress rules.
- Labels map[string]string
- Labels to assign to this security group.
- networkId String
- ID of the network this security group belongs to.
- description String
- Description of the security group.
- egresses
List<VpcDefault Security Group Egress> 
- A list of egress rules. The structure is documented below.
- folderId String
- ID of the folder this security group belongs to.
- ingresses
List<VpcDefault Security Group Ingress> 
- A list of ingress rules.
- labels Map<String,String>
- Labels to assign to this security group.
- networkId string
- ID of the network this security group belongs to.
- description string
- Description of the security group.
- egresses
VpcDefault Security Group Egress[] 
- A list of egress rules. The structure is documented below.
- folderId string
- ID of the folder this security group belongs to.
- ingresses
VpcDefault 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[VpcDefault 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[VpcDefault Security Group Ingress Args] 
- A list of ingress rules.
- labels Mapping[str, str]
- Labels to assign to this security group.
- networkId 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.
- folderId 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) -> VpcDefaultSecurityGroupfunc 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)resources:  _:    type: yandex:VpcDefaultSecurityGroup    get:      id: ${id}- 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.
- CreatedAt string
- Creation timestamp of this security group.
- Description string
- Description of the security group.
- Egresses
List<VpcDefault Security Group Egress> 
- A list of egress rules. The structure is documented below.
- FolderId string
- ID of the folder this security group belongs to.
- Ingresses
List<VpcDefault 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.
- NetworkId string
- ID of the network this security group belongs to.
- Status string
- Status of this security group.
- CreatedAt string
- Creation timestamp of this security group.
- Description string
- Description of the security group.
- Egresses
[]VpcDefault Security Group Egress Args 
- A list of egress rules. The structure is documented below.
- FolderId string
- ID of the folder this security group belongs to.
- Ingresses
[]VpcDefault 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.
- NetworkId string
- ID of the network this security group belongs to.
- Status string
- Status of this security group.
- createdAt String
- Creation timestamp of this security group.
- description String
- Description of the security group.
- egresses
List<VpcDefault Security Group Egress> 
- A list of egress rules. The structure is documented below.
- folderId String
- ID of the folder this security group belongs to.
- ingresses
List<VpcDefault 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.
- networkId String
- ID of the network this security group belongs to.
- status String
- Status of this security group.
- createdAt string
- Creation timestamp of this security group.
- description string
- Description of the security group.
- egresses
VpcDefault Security Group Egress[] 
- A list of egress rules. The structure is documented below.
- folderId string
- ID of the folder this security group belongs to.
- ingresses
VpcDefault 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.
- networkId 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[VpcDefault 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[VpcDefault 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.
- createdAt 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.
- folderId 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.
- networkId 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.
- FromPort int
- Id string
- Id of the security group.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Port int
- PredefinedTarget string
- SecurityGroup stringId 
- ToPort int
- V4CidrBlocks List<string>
- V6CidrBlocks List<string>
- Protocol string
- Description string
- Description of the security group.
- FromPort int
- Id string
- Id of the security group.
- Labels map[string]string
- Labels to assign to this security group.
- Port int
- PredefinedTarget string
- SecurityGroup stringId 
- ToPort int
- V4CidrBlocks []string
- V6CidrBlocks []string
- protocol String
- description String
- Description of the security group.
- fromPort Integer
- id String
- Id of the security group.
- labels Map<String,String>
- Labels to assign to this security group.
- port Integer
- predefinedTarget String
- securityGroup StringId 
- toPort Integer
- v4CidrBlocks List<String>
- v6CidrBlocks List<String>
- protocol string
- description string
- Description of the security group.
- fromPort number
- id string
- Id of the security group.
- labels {[key: string]: string}
- Labels to assign to this security group.
- port number
- predefinedTarget string
- securityGroup stringId 
- toPort number
- v4CidrBlocks string[]
- v6CidrBlocks 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.
- fromPort Number
- id String
- Id of the security group.
- labels Map<String>
- Labels to assign to this security group.
- port Number
- predefinedTarget String
- securityGroup StringId 
- toPort Number
- v4CidrBlocks List<String>
- v6CidrBlocks List<String>
VpcDefaultSecurityGroupIngress, VpcDefaultSecurityGroupIngressArgs          
- Protocol string
- Description string
- Description of the security group.
- FromPort int
- Id string
- Id of the security group.
- Labels Dictionary<string, string>
- Labels to assign to this security group.
- Port int
- PredefinedTarget string
- SecurityGroup stringId 
- ToPort int
- V4CidrBlocks List<string>
- V6CidrBlocks List<string>
- Protocol string
- Description string
- Description of the security group.
- FromPort int
- Id string
- Id of the security group.
- Labels map[string]string
- Labels to assign to this security group.
- Port int
- PredefinedTarget string
- SecurityGroup stringId 
- ToPort int
- V4CidrBlocks []string
- V6CidrBlocks []string
- protocol String
- description String
- Description of the security group.
- fromPort Integer
- id String
- Id of the security group.
- labels Map<String,String>
- Labels to assign to this security group.
- port Integer
- predefinedTarget String
- securityGroup StringId 
- toPort Integer
- v4CidrBlocks List<String>
- v6CidrBlocks List<String>
- protocol string
- description string
- Description of the security group.
- fromPort number
- id string
- Id of the security group.
- labels {[key: string]: string}
- Labels to assign to this security group.
- port number
- predefinedTarget string
- securityGroup stringId 
- toPort number
- v4CidrBlocks string[]
- v6CidrBlocks 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.
- fromPort Number
- id String
- Id of the security group.
- labels Map<String>
- Labels to assign to this security group.
- port Number
- predefinedTarget String
- securityGroup StringId 
- toPort Number
- v4CidrBlocks List<String>
- v6CidrBlocks List<String>
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.