import * as core from "@terrascript/core"; export interface RoleAssociationArgs extends core.ResourceArgs { /** * (Optional) The AWS SSO group ids to be assigned the role given in `role`. */ groupIds?: core.Array | core.ArrayOut; /** * (Required) The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/la * test/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role). */ role: string | core.StringOut; /** * (Optional) The AWS SSO user ids to be assigned the role given in `role`. */ userIds?: core.Array | core.ArrayOut; /** * (Required) The workspace id. */ workspaceId: string | core.StringOut; } export class RoleAssociation extends core.Resource { /** * (Optional) The AWS SSO group ids to be assigned the role given in `role`. */ @core.attr(String, { kind: "array" }) public groupIds?: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/la * test/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role). */ @core.attr(String) public role!: string | core.StringOut; /** * (Optional) The AWS SSO user ids to be assigned the role given in `role`. */ @core.attr(String, { kind: "array" }) public userIds?: core.Array | core.ArrayOut; /** * (Required) The workspace id. */ @core.attr(String) public workspaceId!: string | core.StringOut; constructor(name: string, args?: RoleAssociationArgs) { super(name, "aws_grafana_role_association", args); } public override getNamespace(): string { return "aws_grafana"; } }