Package com.pulumi.aws.ec2
Class SecurityGroupArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.ec2.SecurityGroupArgs
-
public final class SecurityGroupArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurityGroupArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static SecurityGroupArgsEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityGroupArgs.Builderbuilder()static SecurityGroupArgs.Builderbuilder(SecurityGroupArgs defaults)java.util.Optional<com.pulumi.core.Output<java.lang.String>>description()java.util.Optional<com.pulumi.core.Output<java.util.List<SecurityGroupEgressArgs>>>egress()java.util.Optional<com.pulumi.core.Output<java.util.List<SecurityGroupIngressArgs>>>ingress()java.util.Optional<com.pulumi.core.Output<java.lang.String>>name()java.util.Optional<com.pulumi.core.Output<java.lang.String>>namePrefix()java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>revokeRulesOnDelete()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()java.util.Optional<com.pulumi.core.Output<java.lang.String>>vpcId()
-
-
-
Field Detail
-
Empty
public static final SecurityGroupArgs Empty
-
-
Method Detail
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- Security group description. Defaults to `Managed by Pulumi`. Cannot be `""`. **NOTE**: This field maps to the AWS `GroupDescription` attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use `tags`.
-
egress
public java.util.Optional<com.pulumi.core.Output<java.util.List<SecurityGroupEgressArgs>>> egress()
- Returns:
- 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.
-
ingress
public java.util.Optional<com.pulumi.core.Output<java.util.List<SecurityGroupIngressArgs>>> ingress()
- Returns:
- 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.
-
name
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- Name of the security group. If omitted, the provider will assign a random, unique name.
-
namePrefix
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
revokeRulesOnDelete
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> revokeRulesOnDelete()
- Returns:
- 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`.
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
vpcId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> vpcId()
- Returns:
- VPC ID. Defaults to the region's default VPC.
-
builder
public static SecurityGroupArgs.Builder builder()
-
builder
public static SecurityGroupArgs.Builder builder(SecurityGroupArgs defaults)
-
-