Class SecurityGroup

  • All Implemented Interfaces:
    com.hashicorp.cdktf.IInterpolatingParent, com.hashicorp.cdktf.ITerraformAddressable, com.hashicorp.cdktf.ITerraformDependable, com.hashicorp.cdktf.ITerraformResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
               date="2023-06-30T04:56:55.015Z")
    @Stability(Stable)
    public class SecurityGroup
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group aws_security_group}.
    • Field Detail

      • TF_RESOURCE_TYPE

        @Stability(Stable)
        public static final String TF_RESOURCE_TYPE
    • Constructor Detail

      • SecurityGroup

        protected SecurityGroup​(software.amazon.jsii.JsiiObjectRef objRef)
      • SecurityGroup

        protected SecurityGroup​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • SecurityGroup

        @Stability(Stable)
        public SecurityGroup​(@NotNull
                             software.constructs.Construct scope,
                             @NotNull
                             String id,
                             @Nullable
                             SecurityGroupConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group aws_security_group} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        config -
      • SecurityGroup

        @Stability(Stable)
        public SecurityGroup​(@NotNull
                             software.constructs.Construct scope,
                             @NotNull
                             String id)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group aws_security_group} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
    • Method Detail

      • putEgress

        @Stability(Stable)
        public void putEgress​(@NotNull
                              Object value)
        Parameters:
        value - This parameter is required.
      • putIngress

        @Stability(Stable)
        public void putIngress​(@NotNull
                               Object value)
        Parameters:
        value - This parameter is required.
      • putTimeouts

        @Stability(Stable)
        public void putTimeouts​(@NotNull
                                SecurityGroupTimeouts value)
        Parameters:
        value - This parameter is required.
      • resetDescription

        @Stability(Stable)
        public void resetDescription()
      • resetEgress

        @Stability(Stable)
        public void resetEgress()
      • resetId

        @Stability(Stable)
        public void resetId()
      • resetIngress

        @Stability(Stable)
        public void resetIngress()
      • resetName

        @Stability(Stable)
        public void resetName()
      • resetNamePrefix

        @Stability(Stable)
        public void resetNamePrefix()
      • resetRevokeRulesOnDelete

        @Stability(Stable)
        public void resetRevokeRulesOnDelete()
      • resetTags

        @Stability(Stable)
        public void resetTags()
      • resetTagsAll

        @Stability(Stable)
        public void resetTagsAll()
      • resetTimeouts

        @Stability(Stable)
        public void resetTimeouts()
      • resetVpcId

        @Stability(Stable)
        public void resetVpcId()
      • synthesizeAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeAttributes()
        Overrides:
        synthesizeAttributes in class com.hashicorp.cdktf.TerraformResource
      • getArn

        @Stability(Stable)
        @NotNull
        public String getArn()
      • getOwnerId

        @Stability(Stable)
        @NotNull
        public String getOwnerId()
      • getDescriptionInput

        @Stability(Stable)
        @Nullable
        public String getDescriptionInput()
      • getEgressInput

        @Stability(Stable)
        @Nullable
        public Object getEgressInput()
      • getIdInput

        @Stability(Stable)
        @Nullable
        public String getIdInput()
      • getIngressInput

        @Stability(Stable)
        @Nullable
        public Object getIngressInput()
      • getNameInput

        @Stability(Stable)
        @Nullable
        public String getNameInput()
      • getNamePrefixInput

        @Stability(Stable)
        @Nullable
        public String getNamePrefixInput()
      • getRevokeRulesOnDeleteInput

        @Stability(Stable)
        @Nullable
        public Object getRevokeRulesOnDeleteInput()
      • getTagsAllInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsAllInput()
      • getTagsInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsInput()
      • getTimeoutsInput

        @Stability(Stable)
        @Nullable
        public Object getTimeoutsInput()
      • getVpcIdInput

        @Stability(Stable)
        @Nullable
        public String getVpcIdInput()
      • getDescription

        @Stability(Stable)
        @NotNull
        public String getDescription()
      • setDescription

        @Stability(Stable)
        public void setDescription​(@NotNull
                                   String value)
      • getId

        @Stability(Stable)
        @NotNull
        public String getId()
      • setId

        @Stability(Stable)
        public void setId​(@NotNull
                          String value)
      • getName

        @Stability(Stable)
        @NotNull
        public String getName()
      • setName

        @Stability(Stable)
        public void setName​(@NotNull
                            String value)
      • getNamePrefix

        @Stability(Stable)
        @NotNull
        public String getNamePrefix()
      • setNamePrefix

        @Stability(Stable)
        public void setNamePrefix​(@NotNull
                                  String value)
      • getRevokeRulesOnDelete

        @Stability(Stable)
        @NotNull
        public Object getRevokeRulesOnDelete()
      • setRevokeRulesOnDelete

        @Stability(Stable)
        public void setRevokeRulesOnDelete​(@NotNull
                                           Boolean value)
      • setRevokeRulesOnDelete

        @Stability(Stable)
        public void setRevokeRulesOnDelete​(@NotNull
                                           com.hashicorp.cdktf.IResolvable value)
      • getTags

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTags()
      • setTags

        @Stability(Stable)
        public void setTags​(@NotNull
                            Map<String,​String> value)
      • getTagsAll

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTagsAll()
      • setTagsAll

        @Stability(Stable)
        public void setTagsAll​(@NotNull
                               Map<String,​String> value)
      • getVpcId

        @Stability(Stable)
        @NotNull
        public String getVpcId()
      • setVpcId

        @Stability(Stable)
        public void setVpcId​(@NotNull
                             String value)