Class SecurityGroupConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.security_group.SecurityGroupConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityGroupConfig>
- Enclosing interface:
- SecurityGroupConfig
@Stability(Stable) public static final class SecurityGroupConfig.Builder extends Object implements software.amazon.jsii.Builder<SecurityGroupConfig>
A builder forSecurityGroupConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupConfigbuild()Builds the configured instance.SecurityGroupConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()SecurityGroupConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()SecurityGroupConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()SecurityGroupConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()SecurityGroupConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()SecurityGroupConfig.Builderdescription(String description)Sets the value ofSecurityGroupConfig.getDescription()SecurityGroupConfig.Builderegress(com.hashicorp.cdktf.IResolvable egress)Sets the value ofSecurityGroupConfig.getEgress()SecurityGroupConfig.Builderegress(List<? extends SecurityGroupEgress> egress)Sets the value ofSecurityGroupConfig.getEgress()SecurityGroupConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()SecurityGroupConfig.Builderid(String id)Sets the value ofSecurityGroupConfig.getId()SecurityGroupConfig.Builderingress(com.hashicorp.cdktf.IResolvable ingress)Sets the value ofSecurityGroupConfig.getIngress()SecurityGroupConfig.Builderingress(List<? extends SecurityGroupIngress> ingress)Sets the value ofSecurityGroupConfig.getIngress()SecurityGroupConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()SecurityGroupConfig.Buildername(String name)Sets the value ofSecurityGroupConfig.getName()SecurityGroupConfig.BuildernamePrefix(String namePrefix)Sets the value ofSecurityGroupConfig.getNamePrefix()SecurityGroupConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()SecurityGroupConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()SecurityGroupConfig.BuilderrevokeRulesOnDelete(com.hashicorp.cdktf.IResolvable revokeRulesOnDelete)Sets the value ofSecurityGroupConfig.getRevokeRulesOnDelete()SecurityGroupConfig.BuilderrevokeRulesOnDelete(Boolean revokeRulesOnDelete)Sets the value ofSecurityGroupConfig.getRevokeRulesOnDelete()SecurityGroupConfig.Buildertags(Map<String,String> tags)Sets the value ofSecurityGroupConfig.getTags()SecurityGroupConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofSecurityGroupConfig.getTagsAll()SecurityGroupConfig.Buildertimeouts(SecurityGroupTimeouts timeouts)Sets the value ofSecurityGroupConfig.getTimeouts()SecurityGroupConfig.BuildervpcId(String vpcId)Sets the value ofSecurityGroupConfig.getVpcId()
-
-
-
Method Detail
-
description
@Stability(Stable) public SecurityGroupConfig.Builder description(String description)
Sets the value ofSecurityGroupConfig.getDescription()- Parameters:
description- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#description SecurityGroup#description}.- Returns:
this
-
egress
@Stability(Stable) public SecurityGroupConfig.Builder egress(com.hashicorp.cdktf.IResolvable egress)
Sets the value ofSecurityGroupConfig.getEgress()- Parameters:
egress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#egress SecurityGroup#egress}.- Returns:
this
-
egress
@Stability(Stable) public SecurityGroupConfig.Builder egress(List<? extends SecurityGroupEgress> egress)
Sets the value ofSecurityGroupConfig.getEgress()- Parameters:
egress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#egress SecurityGroup#egress}.- Returns:
this
-
id
@Stability(Stable) public SecurityGroupConfig.Builder id(String id)
Sets the value ofSecurityGroupConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#id SecurityGroup#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
ingress
@Stability(Stable) public SecurityGroupConfig.Builder ingress(com.hashicorp.cdktf.IResolvable ingress)
Sets the value ofSecurityGroupConfig.getIngress()- Parameters:
ingress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#ingress SecurityGroup#ingress}.- Returns:
this
-
ingress
@Stability(Stable) public SecurityGroupConfig.Builder ingress(List<? extends SecurityGroupIngress> ingress)
Sets the value ofSecurityGroupConfig.getIngress()- Parameters:
ingress- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#ingress SecurityGroup#ingress}.- Returns:
this
-
name
@Stability(Stable) public SecurityGroupConfig.Builder name(String name)
Sets the value ofSecurityGroupConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#name SecurityGroup#name}.- Returns:
this
-
namePrefix
@Stability(Stable) public SecurityGroupConfig.Builder namePrefix(String namePrefix)
Sets the value ofSecurityGroupConfig.getNamePrefix()- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#name_prefix SecurityGroup#name_prefix}.- Returns:
this
-
revokeRulesOnDelete
@Stability(Stable) public SecurityGroupConfig.Builder revokeRulesOnDelete(Boolean revokeRulesOnDelete)
Sets the value ofSecurityGroupConfig.getRevokeRulesOnDelete()- Parameters:
revokeRulesOnDelete- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#revoke_rules_on_delete SecurityGroup#revoke_rules_on_delete}.- Returns:
this
-
revokeRulesOnDelete
@Stability(Stable) public SecurityGroupConfig.Builder revokeRulesOnDelete(com.hashicorp.cdktf.IResolvable revokeRulesOnDelete)
Sets the value ofSecurityGroupConfig.getRevokeRulesOnDelete()- Parameters:
revokeRulesOnDelete- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#revoke_rules_on_delete SecurityGroup#revoke_rules_on_delete}.- Returns:
this
-
tags
@Stability(Stable) public SecurityGroupConfig.Builder tags(Map<String,String> tags)
Sets the value ofSecurityGroupConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#tags SecurityGroup#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public SecurityGroupConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofSecurityGroupConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#tags_all SecurityGroup#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public SecurityGroupConfig.Builder timeouts(SecurityGroupTimeouts timeouts)
Sets the value ofSecurityGroupConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#timeouts SecurityGroup#timeouts}- Returns:
this
-
vpcId
@Stability(Stable) public SecurityGroupConfig.Builder vpcId(String vpcId)
Sets the value ofSecurityGroupConfig.getVpcId()- Parameters:
vpcId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/security_group#vpc_id SecurityGroup#vpc_id}.- Returns:
this
-
connection
@Stability(Experimental) public SecurityGroupConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public SecurityGroupConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecurityGroupConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecurityGroupConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public SecurityGroupConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public SecurityGroupConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public SecurityGroupConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public SecurityGroupConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public SecurityGroupConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public SecurityGroupConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityGroupConfig>- Returns:
- a new instance of
SecurityGroupConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-