SecurityGroup class
The set of arguments for constructing a Security Group resource.
Constructors
-
SecurityGroup({Input<
String?> ? description, Input<List< ? egress, Input<SecurityGroupEgress> ?>List< ? ingress, Input<SecurityGroupIngress> ?>String?> ? name, Input<String?> ? namePrefix, Input<String?> ? region, Input<bool?> ? revokeRulesOnDelete, Input<Map< ? tags, Input<String, String> ?>String?> ? vpcId}) -
Creates a new SecurityGroup.
descriptionSecurity group description. Defaults toManaged by Pulumi. Cannot be"". NOTE: This field maps to the AWSGroupDescriptionattribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, usetags.egressConfiguration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode.ingressConfiguration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode.nameName of the security group. If omitted, the provider will assign a random, unique name.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.revokeRulesOnDeleteInstruct the provider to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself. This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Defaultfalse.tagsMap of tags to assign to the resource. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.vpcIdVPC ID. Defaults to the region's default VPC. -
SecurityGroup.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
description
→ Input<
String?> ? -
Security group description. Defaults to
Managed by Pulumi. Cannot be"". NOTE: This field maps to the AWSGroupDescriptionattribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, usetags.final -
egress
→ Input<
List< ?SecurityGroupEgress> ?> -
Configuration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ingress
→ Input<
List< ?SecurityGroupIngress> ?> -
Configuration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
final
-
name
→ Input<
String?> ? -
Name of the security group. If omitted, the provider will assign a random, unique name.
final
-
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix. Conflicts with
name.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
revokeRulesOnDelete
→ Input<
bool?> ? -
Instruct the provider to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself. This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default
false.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
vpcId
→ Input<
String?> ? -
VPC ID. Defaults to the region's default VPC.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited