import * as core from "@terrascript/core"; export interface InstanceProfileArgs extends core.ResourceArgs { /** * (Optional) The description of the instance profile. */ description?: string | core.StringOut; /** * (Optional) An array of strings that specifies the list of app packages that should not be cleaned up * from the device after a test run. */ excludeAppPackagesFromCleanup?: | core.Array | core.ArrayOut; /** * (Required) The name for the instance profile. */ name: string | core.StringOut; /** * (Optional) When set to `true`, Device Farm removes app packages after a test run. The default value * is `false` for private devices. */ packageCleanup?: boolean | core.BooleanOut; /** * (Optional) When set to `true`, Device Farm reboots the instance after a test run. The default value * is `true`. */ rebootAfterUse?: boolean | core.BooleanOut; /** * (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 InstanceProfile extends core.Resource { /** * The Amazon Resource Name of this instance profile. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description of the instance profile. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) An array of strings that specifies the list of app packages that should not be cleaned up * from the device after a test run. */ @core.attr(String, { kind: "array" }) public excludeAppPackagesFromCleanup?: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name for the instance profile. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) When set to `true`, Device Farm removes app packages after a test run. The default value * is `false` for private devices. */ @core.attr(Boolean) public packageCleanup?: boolean | core.BooleanOut; /** * (Optional) When set to `true`, Device Farm reboots the instance after a test run. The default value * is `true`. */ @core.attr(Boolean) public rebootAfterUse?: boolean | core.BooleanOut; /** * (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?: InstanceProfileArgs) { super(name, "aws_devicefarm_instance_profile", args); } public override getNamespace(): string { return "aws_devicefarm"; } }