@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
113 lines (112 loc) • 5.53 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface OrganizationIamCustomRoleConfig extends cdktf.TerraformMetaArguments {
/**
* A human-readable description for the role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#description OrganizationIamCustomRole#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#id OrganizationIamCustomRole#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.
*/
readonly id?: string;
/**
* The numeric ID of the organization in which you want to create a custom role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#org_id OrganizationIamCustomRole#org_id}
*/
readonly orgId: string;
/**
* 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/6.13.0/docs/resources/organization_iam_custom_role#permissions OrganizationIamCustomRole#permissions}
*/
readonly permissions: string[];
/**
* The role id to use for this role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#role_id OrganizationIamCustomRole#role_id}
*/
readonly roleId: string;
/**
* The current launch stage of the role. Defaults to GA.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#stage OrganizationIamCustomRole#stage}
*/
readonly stage?: string;
/**
* A human-readable title for the role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#title OrganizationIamCustomRole#title}
*/
readonly title: string;
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role google_organization_iam_custom_role}
*/
export declare class OrganizationIamCustomRole extends cdktf.TerraformResource {
static readonly tfResourceType = "google_organization_iam_custom_role";
/**
* Generates CDKTF code for importing a OrganizationIamCustomRole resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the OrganizationIamCustomRole to import
* @param importFromId The id of the existing OrganizationIamCustomRole that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the OrganizationIamCustomRole to import is found
*/
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/organization_iam_custom_role google_organization_iam_custom_role} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options OrganizationIamCustomRoleConfig
*/
constructor(scope: Construct, id: string, config: OrganizationIamCustomRoleConfig);
get deleted(): cdktf.IResolvable;
private _description?;
get description(): string;
set description(value: string);
resetDescription(): void;
get descriptionInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
get name(): string;
private _orgId?;
get orgId(): string;
set orgId(value: string);
get orgIdInput(): string | undefined;
private _permissions?;
get permissions(): string[];
set permissions(value: string[]);
get permissionsInput(): string[] | undefined;
private _roleId?;
get roleId(): string;
set roleId(value: string);
get roleIdInput(): string | undefined;
private _stage?;
get stage(): string;
set stage(value: string);
resetStage(): void;
get stageInput(): string | undefined;
private _title?;
get title(): string;
set title(value: string);
get titleInput(): string | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}