import * as core from "@terrascript/core"; export interface ResourceUrisArgs extends core.SchemaArgs { resourceType: string | core.StringOut; uri: string | core.StringOut; } export class ResourceUris extends core.Schema { @core.attr(String) public resourceType!: string | core.StringOut; @core.attr(String) public uri!: string | core.StringOut; } export interface UserDefinedFunctionArgs extends core.ResourceArgs { /** * (Optional) ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Ac * count ID. */ catalogId?: string | core.StringOut; /** * (Required) The Java class that contains the function code. */ className: string | core.StringOut; /** * (Required) The name of the Database to create the Function. */ databaseName: string | core.StringOut; /** * (Required) The name of the function. */ name: string | core.StringOut; /** * (Required) The owner of the function. */ ownerName: string | core.StringOut; /** * (Required) The owner type. can be one of `USER`, `ROLE`, and `GROUP`. */ ownerType: string | core.StringOut; /** * (Optional) The configuration block for Resource URIs. See [resource uris](#resource-uris) below for * more details. */ resourceUris?: core.Array | core.ArrayOut; } export class UserDefinedFunction extends core.Resource { @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Ac * count ID. */ @core.attr(String) public catalogId?: string | core.StringOut; /** * (Required) The Java class that contains the function code. */ @core.attr(String) public className!: string | core.StringOut; @core.attr(String, { computed: true }) public createTime!: string | core.StringOut; /** * (Required) The name of the Database to create the Function. */ @core.attr(String) public databaseName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the function. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The owner of the function. */ @core.attr(String) public ownerName!: string | core.StringOut; /** * (Required) The owner type. can be one of `USER`, `ROLE`, and `GROUP`. */ @core.attr(String) public ownerType!: string | core.StringOut; /** * (Optional) The configuration block for Resource URIs. See [resource uris](#resource-uris) below for * more details. */ @core.attr(ResourceUris, { kind: "array" }) public resourceUris?: core.Array | core.ArrayOut; constructor(name: string, args?: UserDefinedFunctionArgs) { super(name, "aws_glue_user_defined_function", args); } public override getNamespace(): string { return "aws_glue"; } }