import * as core from "@terrascript/core"; export interface DsRolesArgs { /** * (Optional) A regex string to apply to the IAM roles list returned by AWS. This allows more advanced * filtering not supported from the AWS API. This filtering is done locally on what AWS returns, and co * uld have a performance impact if the result is large. Combine this with other options to narrow down * the list AWS returns. */ nameRegex?: string | core.StringOut; /** * (Optional) The path prefix for filtering the results. For example, the prefix `/application_abc/comp * onent_xyz/` gets all roles whose path starts with `/application_abc/component_xyz/`. If it is not in * cluded, it defaults to a slash (`/`), listing all roles. For more details, check out [list-roles in * the AWS CLI reference][1]. */ pathPrefix?: string | core.StringOut; } export class DsRoles extends core.Data { /** * Set of ARNs of the matched IAM roles. */ @core.attr(String, { computed: true, kind: "array" }) public arns!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A regex string to apply to the IAM roles list returned by AWS. This allows more advanced * filtering not supported from the AWS API. This filtering is done locally on what AWS returns, and co * uld have a performance impact if the result is large. Combine this with other options to narrow down * the list AWS returns. */ @core.attr(String) public nameRegex?: string | core.StringOut; /** * Set of Names of the matched IAM roles. */ @core.attr(String, { computed: true, kind: "array" }) public names!: core.Array | core.ArrayOut; /** * (Optional) The path prefix for filtering the results. For example, the prefix `/application_abc/comp * onent_xyz/` gets all roles whose path starts with `/application_abc/component_xyz/`. If it is not in * cluded, it defaults to a slash (`/`), listing all roles. For more details, check out [list-roles in * the AWS CLI reference][1]. */ @core.attr(String) public pathPrefix?: string | core.StringOut; constructor(name: string, args?: DsRolesArgs) { super(name, "aws_iam_roles", args); } public override getNamespace(): string { return "aws_iam"; } }