Class ProjectIamCustomRole.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static ProjectIamCustomRole.Builder create​(software.constructs.Construct scope,
                                                          String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of ProjectIamCustomRole.Builder.
      • connection

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public ProjectIamCustomRole.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • permissions

        @Stability(Stable)
        public ProjectIamCustomRole.Builder permissions​(List<String> permissions)
        The names of the permissions this role grants when bound in an IAM policy.

        At least one permission must be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#permissions ProjectIamCustomRole#permissions}

        Parameters:
        permissions - The names of the permissions this role grants when bound in an IAM policy. This parameter is required.
        Returns:
        this
      • roleId

        @Stability(Stable)
        public ProjectIamCustomRole.Builder roleId​(String roleId)
        The camel case role id to use for this role. Cannot contain - characters.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#role_id ProjectIamCustomRole#role_id}

        Parameters:
        roleId - The camel case role id to use for this role. Cannot contain - characters. This parameter is required.
        Returns:
        this
      • title

        @Stability(Stable)
        public ProjectIamCustomRole.Builder title​(String title)
        A human-readable title for the role.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#title ProjectIamCustomRole#title}

        Parameters:
        title - A human-readable title for the role. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ProjectIamCustomRole.Builder description​(String description)
        A human-readable description for the role.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#description ProjectIamCustomRole#description}

        Parameters:
        description - A human-readable description for the role. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ProjectIamCustomRole.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#id ProjectIamCustomRole#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.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#id ProjectIamCustomRole#id}. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public ProjectIamCustomRole.Builder project​(String project)
        The project that the service account will be created in. Defaults to the provider project configuration.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#project ProjectIamCustomRole#project}

        Parameters:
        project - The project that the service account will be created in. Defaults to the provider project configuration. This parameter is required.
        Returns:
        this
      • stage

        @Stability(Stable)
        public ProjectIamCustomRole.Builder stage​(String stage)
        The current launch stage of the role. Defaults to GA.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_iam_custom_role#stage ProjectIamCustomRole#stage}

        Parameters:
        stage - The current launch stage of the role. Defaults to GA. This parameter is required.
        Returns:
        this