import * as core from "@terrascript/core"; export interface DsServiceArgs { /** * (Optional) DNS name of the service (_e.g.,_ `rds.us-east-1.amazonaws.com`). One of `dns_name`, `reve * rse_dns_name`, or `service_id` is required. */ dnsName?: string | core.StringOut; /** * (Optional) Region of the service (_e.g.,_ `us-west-2`, `ap-northeast-1`). */ region?: string | core.StringOut; /** * (Optional) Reverse DNS name of the service (_e.g.,_ `com.amazonaws.us-west-2.s3`). One of `dns_name` * , `reverse_dns_name`, or `service_id` is required. */ reverseDnsName?: string | core.StringOut; /** * (Optional) Prefix of the service (_e.g.,_ `com.amazonaws` in AWS Commercial, `cn.com.amazonaws` in A * WS China). */ reverseDnsPrefix?: string | core.StringOut; /** * (Optional) Service (_e.g.,_ `s3`, `rds`, `ec2`). One of `dns_name`, `reverse_dns_name`, or `service_ * id` is required. */ serviceId?: string | core.StringOut; } export class DsService extends core.Data { /** * (Optional) DNS name of the service (_e.g.,_ `rds.us-east-1.amazonaws.com`). One of `dns_name`, `reve * rse_dns_name`, or `service_id` is required. */ @core.attr(String, { computed: true }) public dnsName?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Partition corresponding to the region. */ @core.attr(String, { computed: true }) public partition!: string | core.StringOut; /** * (Optional) Region of the service (_e.g.,_ `us-west-2`, `ap-northeast-1`). */ @core.attr(String, { computed: true }) public region?: string | core.StringOut; /** * (Optional) Reverse DNS name of the service (_e.g.,_ `com.amazonaws.us-west-2.s3`). One of `dns_name` * , `reverse_dns_name`, or `service_id` is required. */ @core.attr(String, { computed: true }) public reverseDnsName?: string | core.StringOut; /** * (Optional) Prefix of the service (_e.g.,_ `com.amazonaws` in AWS Commercial, `cn.com.amazonaws` in A * WS China). */ @core.attr(String, { computed: true }) public reverseDnsPrefix?: string | core.StringOut; /** * (Optional) Service (_e.g.,_ `s3`, `rds`, `ec2`). One of `dns_name`, `reverse_dns_name`, or `service_ * id` is required. */ @core.attr(String, { computed: true }) public serviceId?: string | core.StringOut; /** * Whether the service is supported in the region's partition. New services may not be listed immediate * ly as supported. */ @core.attr(Boolean, { computed: true }) public supported!: boolean | core.BooleanOut; constructor(name: string, args?: DsServiceArgs) { super(name, "aws_service", args); } public override getNamespace(): string { return "aws_meta_data_sources"; } }