Class OpsworksPermissionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.opsworks_permission.OpsworksPermissionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpsworksPermissionConfig>
- Enclosing interface:
- OpsworksPermissionConfig
@Stability(Stable) public static final class OpsworksPermissionConfig.Builder extends Object implements software.amazon.jsii.Builder<OpsworksPermissionConfig>
A builder forOpsworksPermissionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpsworksPermissionConfig.BuilderallowSsh(com.hashicorp.cdktf.IResolvable allowSsh)Sets the value ofOpsworksPermissionConfig.getAllowSsh()OpsworksPermissionConfig.BuilderallowSsh(Boolean allowSsh)Sets the value ofOpsworksPermissionConfig.getAllowSsh()OpsworksPermissionConfig.BuilderallowSudo(com.hashicorp.cdktf.IResolvable allowSudo)Sets the value ofOpsworksPermissionConfig.getAllowSudo()OpsworksPermissionConfig.BuilderallowSudo(Boolean allowSudo)Sets the value ofOpsworksPermissionConfig.getAllowSudo()OpsworksPermissionConfigbuild()Builds the configured instance.OpsworksPermissionConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()OpsworksPermissionConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()OpsworksPermissionConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()OpsworksPermissionConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()OpsworksPermissionConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()OpsworksPermissionConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()OpsworksPermissionConfig.Builderid(String id)Sets the value ofOpsworksPermissionConfig.getId()OpsworksPermissionConfig.Builderlevel(String level)Sets the value ofOpsworksPermissionConfig.getLevel()OpsworksPermissionConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()OpsworksPermissionConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()OpsworksPermissionConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()OpsworksPermissionConfig.BuilderstackId(String stackId)Sets the value ofOpsworksPermissionConfig.getStackId()OpsworksPermissionConfig.BuilderuserArn(String userArn)Sets the value ofOpsworksPermissionConfig.getUserArn()
-
-
-
Method Detail
-
stackId
@Stability(Stable) public OpsworksPermissionConfig.Builder stackId(String stackId)
Sets the value ofOpsworksPermissionConfig.getStackId()- Parameters:
stackId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#stack_id OpsworksPermission#stack_id}. This parameter is required.- Returns:
this
-
userArn
@Stability(Stable) public OpsworksPermissionConfig.Builder userArn(String userArn)
Sets the value ofOpsworksPermissionConfig.getUserArn()- Parameters:
userArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#user_arn OpsworksPermission#user_arn}. This parameter is required.- Returns:
this
-
allowSsh
@Stability(Stable) public OpsworksPermissionConfig.Builder allowSsh(Boolean allowSsh)
Sets the value ofOpsworksPermissionConfig.getAllowSsh()- Parameters:
allowSsh- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#allow_ssh OpsworksPermission#allow_ssh}.- Returns:
this
-
allowSsh
@Stability(Stable) public OpsworksPermissionConfig.Builder allowSsh(com.hashicorp.cdktf.IResolvable allowSsh)
Sets the value ofOpsworksPermissionConfig.getAllowSsh()- Parameters:
allowSsh- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#allow_ssh OpsworksPermission#allow_ssh}.- Returns:
this
-
allowSudo
@Stability(Stable) public OpsworksPermissionConfig.Builder allowSudo(Boolean allowSudo)
Sets the value ofOpsworksPermissionConfig.getAllowSudo()- Parameters:
allowSudo- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#allow_sudo OpsworksPermission#allow_sudo}.- Returns:
this
-
allowSudo
@Stability(Stable) public OpsworksPermissionConfig.Builder allowSudo(com.hashicorp.cdktf.IResolvable allowSudo)
Sets the value ofOpsworksPermissionConfig.getAllowSudo()- Parameters:
allowSudo- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#allow_sudo OpsworksPermission#allow_sudo}.- Returns:
this
-
id
@Stability(Stable) public OpsworksPermissionConfig.Builder id(String id)
Sets the value ofOpsworksPermissionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#id OpsworksPermission#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
-
level
@Stability(Stable) public OpsworksPermissionConfig.Builder level(String level)
Sets the value ofOpsworksPermissionConfig.getLevel()- Parameters:
level- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_permission#level OpsworksPermission#level}.- Returns:
this
-
connection
@Stability(Experimental) public OpsworksPermissionConfig.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 OpsworksPermissionConfig.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 OpsworksPermissionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OpsworksPermissionConfig.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 OpsworksPermissionConfig.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 OpsworksPermissionConfig.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 OpsworksPermissionConfig.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 OpsworksPermissionConfig.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 OpsworksPermissionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public OpsworksPermissionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpsworksPermissionConfig>- Returns:
- a new instance of
OpsworksPermissionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-