import * as core from "@terrascript/core"; export interface SourceDataArgs extends core.SchemaArgs { acmPcaArn?: string | core.StringOut; x509CertificateData?: string | core.StringOut; } export class SourceData extends core.Schema { @core.attr(String) public acmPcaArn?: string | core.StringOut; @core.attr(String) public x509CertificateData?: string | core.StringOut; } export interface SourceArgs extends core.SchemaArgs { sourceData: SourceData; sourceType: string | core.StringOut; } export class Source extends core.Schema { @core.attr(SourceData) public sourceData!: SourceData; @core.attr(String) public sourceType!: string | core.StringOut; } export interface TrustAnchorArgs extends core.ResourceArgs { /** * (Optional) Whether or not the Trust Anchor should be enabled. */ enabled?: boolean | core.BooleanOut; /** * (Required) The name of the Trust Anchor. */ name: string | core.StringOut; /** * (Required) The source of trust, documented below */ source: Source; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class TrustAnchor extends core.Resource { /** * Amazon Resource Name (ARN) of the Trust Anchor */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Whether or not the Trust Anchor should be enabled. */ @core.attr(Boolean, { computed: true }) public enabled?: boolean | core.BooleanOut; /** * The Trust Anchor ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the Trust Anchor. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The source of trust, documented below */ @core.attr(Source) public source!: Source; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: TrustAnchorArgs) { super(name, "aws_rolesanywhere_trust_anchor", args); } public override getNamespace(): string { return "aws_rolesanywhere"; } }