import { CustomHealthStatus, FilterCondition, HealthCheckType, HealthStatus, HealthStatusFilter, NamespaceFilterName, NamespaceType, OperationFilterName, OperationStatus, OperationTargetType, OperationType, RecordType, RoutingPolicy, ServiceFilterName, ServiceType, ServiceTypeOption, } from "./enums"; export interface Tag { Key: string | undefined; Value: string | undefined; } export interface CreateHttpNamespaceRequest { Name: string | undefined; CreatorRequestId?: string | undefined; Description?: string | undefined; Tags?: Tag[] | undefined; } export interface CreateHttpNamespaceResponse { OperationId?: string | undefined; } export interface SOA { TTL: number | undefined; } export interface PrivateDnsPropertiesMutable { SOA: SOA | undefined; } export interface PrivateDnsNamespaceProperties { DnsProperties: PrivateDnsPropertiesMutable | undefined; } export interface CreatePrivateDnsNamespaceRequest { Name: string | undefined; CreatorRequestId?: string | undefined; Description?: string | undefined; Vpc: string | undefined; Tags?: Tag[] | undefined; Properties?: PrivateDnsNamespaceProperties | undefined; } export interface CreatePrivateDnsNamespaceResponse { OperationId?: string | undefined; } export interface PublicDnsPropertiesMutable { SOA: SOA | undefined; } export interface PublicDnsNamespaceProperties { DnsProperties: PublicDnsPropertiesMutable | undefined; } export interface CreatePublicDnsNamespaceRequest { Name: string | undefined; CreatorRequestId?: string | undefined; Description?: string | undefined; Tags?: Tag[] | undefined; Properties?: PublicDnsNamespaceProperties | undefined; } export interface CreatePublicDnsNamespaceResponse { OperationId?: string | undefined; } export interface DnsRecord { Type: RecordType | undefined; TTL: number | undefined; } export interface DnsConfig { NamespaceId?: string | undefined; RoutingPolicy?: RoutingPolicy | undefined; DnsRecords: DnsRecord[] | undefined; } export interface HealthCheckConfig { Type: HealthCheckType | undefined; ResourcePath?: string | undefined; FailureThreshold?: number | undefined; } export interface HealthCheckCustomConfig { FailureThreshold?: number | undefined; } export interface CreateServiceRequest { Name: string | undefined; NamespaceId?: string | undefined; CreatorRequestId?: string | undefined; Description?: string | undefined; DnsConfig?: DnsConfig | undefined; HealthCheckConfig?: HealthCheckConfig | undefined; HealthCheckCustomConfig?: HealthCheckCustomConfig | undefined; Tags?: Tag[] | undefined; Type?: ServiceTypeOption | undefined; } export interface Service { Id?: string | undefined; Arn?: string | undefined; ResourceOwner?: string | undefined; Name?: string | undefined; NamespaceId?: string | undefined; Description?: string | undefined; InstanceCount?: number | undefined; DnsConfig?: DnsConfig | undefined; Type?: ServiceType | undefined; HealthCheckConfig?: HealthCheckConfig | undefined; HealthCheckCustomConfig?: HealthCheckCustomConfig | undefined; CreateDate?: Date | undefined; CreatorRequestId?: string | undefined; CreatedByAccount?: string | undefined; } export interface CreateServiceResponse { Service?: Service | undefined; } export interface DeleteNamespaceRequest { Id: string | undefined; } export interface DeleteNamespaceResponse { OperationId?: string | undefined; } export interface DeleteServiceRequest { Id: string | undefined; } export interface DeleteServiceResponse {} export interface DeleteServiceAttributesRequest { ServiceId: string | undefined; Attributes: string[] | undefined; } export interface DeleteServiceAttributesResponse {} export interface DeregisterInstanceRequest { ServiceId: string | undefined; InstanceId: string | undefined; } export interface DeregisterInstanceResponse { OperationId?: string | undefined; } export interface DiscoverInstancesRequest { NamespaceName: string | undefined; ServiceName: string | undefined; MaxResults?: number | undefined; QueryParameters?: Record | undefined; OptionalParameters?: Record | undefined; HealthStatus?: HealthStatusFilter | undefined; OwnerAccount?: string | undefined; } export interface HttpInstanceSummary { InstanceId?: string | undefined; NamespaceName?: string | undefined; ServiceName?: string | undefined; HealthStatus?: HealthStatus | undefined; Attributes?: Record | undefined; } export interface DiscoverInstancesResponse { Instances?: HttpInstanceSummary[] | undefined; InstancesRevision?: number | undefined; } export interface DiscoverInstancesRevisionRequest { NamespaceName: string | undefined; ServiceName: string | undefined; OwnerAccount?: string | undefined; } export interface DiscoverInstancesRevisionResponse { InstancesRevision?: number | undefined; } export interface DnsConfigChange { DnsRecords: DnsRecord[] | undefined; } export interface DnsProperties { HostedZoneId?: string | undefined; SOA?: SOA | undefined; } export interface GetInstanceRequest { ServiceId: string | undefined; InstanceId: string | undefined; } export interface Instance { Id: string | undefined; CreatorRequestId?: string | undefined; Attributes?: Record | undefined; CreatedByAccount?: string | undefined; } export interface GetInstanceResponse { ResourceOwner?: string | undefined; Instance?: Instance | undefined; } export interface GetInstancesHealthStatusRequest { ServiceId: string | undefined; Instances?: string[] | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface GetInstancesHealthStatusResponse { Status?: Record | undefined; NextToken?: string | undefined; } export interface GetNamespaceRequest { Id: string | undefined; } export interface HttpProperties { HttpName?: string | undefined; } export interface NamespaceProperties { DnsProperties?: DnsProperties | undefined; HttpProperties?: HttpProperties | undefined; } export interface Namespace { Id?: string | undefined; Arn?: string | undefined; ResourceOwner?: string | undefined; Name?: string | undefined; Type?: NamespaceType | undefined; Description?: string | undefined; ServiceCount?: number | undefined; Properties?: NamespaceProperties | undefined; CreateDate?: Date | undefined; CreatorRequestId?: string | undefined; } export interface GetNamespaceResponse { Namespace?: Namespace | undefined; } export interface GetOperationRequest { OperationId: string | undefined; OwnerAccount?: string | undefined; } export interface Operation { Id?: string | undefined; OwnerAccount?: string | undefined; Type?: OperationType | undefined; Status?: OperationStatus | undefined; ErrorMessage?: string | undefined; ErrorCode?: string | undefined; CreateDate?: Date | undefined; UpdateDate?: Date | undefined; Targets?: Partial> | undefined; } export interface GetOperationResponse { Operation?: Operation | undefined; } export interface GetServiceRequest { Id: string | undefined; } export interface GetServiceResponse { Service?: Service | undefined; } export interface GetServiceAttributesRequest { ServiceId: string | undefined; } export interface ServiceAttributes { ServiceArn?: string | undefined; ResourceOwner?: string | undefined; Attributes?: Record | undefined; } export interface GetServiceAttributesResponse { ServiceAttributes?: ServiceAttributes | undefined; } export interface HttpNamespaceChange { Description: string | undefined; } export interface InstanceSummary { Id?: string | undefined; Attributes?: Record | undefined; CreatedByAccount?: string | undefined; } export interface ListInstancesRequest { ServiceId: string | undefined; NextToken?: string | undefined; MaxResults?: number | undefined; } export interface ListInstancesResponse { ResourceOwner?: string | undefined; Instances?: InstanceSummary[] | undefined; NextToken?: string | undefined; } export interface NamespaceFilter { Name: NamespaceFilterName | undefined; Values: string[] | undefined; Condition?: FilterCondition | undefined; } export interface ListNamespacesRequest { NextToken?: string | undefined; MaxResults?: number | undefined; Filters?: NamespaceFilter[] | undefined; } export interface NamespaceSummary { Id?: string | undefined; Arn?: string | undefined; ResourceOwner?: string | undefined; Name?: string | undefined; Type?: NamespaceType | undefined; Description?: string | undefined; ServiceCount?: number | undefined; Properties?: NamespaceProperties | undefined; CreateDate?: Date | undefined; } export interface ListNamespacesResponse { Namespaces?: NamespaceSummary[] | undefined; NextToken?: string | undefined; } export interface OperationFilter { Name: OperationFilterName | undefined; Values: string[] | undefined; Condition?: FilterCondition | undefined; } export interface ListOperationsRequest { NextToken?: string | undefined; MaxResults?: number | undefined; Filters?: OperationFilter[] | undefined; } export interface OperationSummary { Id?: string | undefined; Status?: OperationStatus | undefined; } export interface ListOperationsResponse { Operations?: OperationSummary[] | undefined; NextToken?: string | undefined; } export interface ServiceFilter { Name: ServiceFilterName | undefined; Values: string[] | undefined; Condition?: FilterCondition | undefined; } export interface ListServicesRequest { NextToken?: string | undefined; MaxResults?: number | undefined; Filters?: ServiceFilter[] | undefined; } export interface ServiceSummary { Id?: string | undefined; Arn?: string | undefined; ResourceOwner?: string | undefined; Name?: string | undefined; Type?: ServiceType | undefined; Description?: string | undefined; InstanceCount?: number | undefined; DnsConfig?: DnsConfig | undefined; HealthCheckConfig?: HealthCheckConfig | undefined; HealthCheckCustomConfig?: HealthCheckCustomConfig | undefined; CreateDate?: Date | undefined; CreatedByAccount?: string | undefined; } export interface ListServicesResponse { Services?: ServiceSummary[] | undefined; NextToken?: string | undefined; } export interface ListTagsForResourceRequest { ResourceARN: string | undefined; } export interface ListTagsForResourceResponse { Tags?: Tag[] | undefined; } export interface SOAChange { TTL: number | undefined; } export interface PrivateDnsPropertiesMutableChange { SOA: SOAChange | undefined; } export interface PrivateDnsNamespacePropertiesChange { DnsProperties: PrivateDnsPropertiesMutableChange | undefined; } export interface PrivateDnsNamespaceChange { Description?: string | undefined; Properties?: PrivateDnsNamespacePropertiesChange | undefined; } export interface PublicDnsPropertiesMutableChange { SOA: SOAChange | undefined; } export interface PublicDnsNamespacePropertiesChange { DnsProperties: PublicDnsPropertiesMutableChange | undefined; } export interface PublicDnsNamespaceChange { Description?: string | undefined; Properties?: PublicDnsNamespacePropertiesChange | undefined; } export interface RegisterInstanceRequest { ServiceId: string | undefined; InstanceId: string | undefined; CreatorRequestId?: string | undefined; Attributes: Record | undefined; } export interface RegisterInstanceResponse { OperationId?: string | undefined; } export interface TagResourceRequest { ResourceARN: string | undefined; Tags: Tag[] | undefined; } export interface TagResourceResponse {} export interface UntagResourceRequest { ResourceARN: string | undefined; TagKeys: string[] | undefined; } export interface UntagResourceResponse {} export interface UpdateHttpNamespaceRequest { Id: string | undefined; UpdaterRequestId?: string | undefined; Namespace: HttpNamespaceChange | undefined; } export interface UpdateHttpNamespaceResponse { OperationId?: string | undefined; } export interface UpdateInstanceCustomHealthStatusRequest { ServiceId: string | undefined; InstanceId: string | undefined; Status: CustomHealthStatus | undefined; } export interface UpdatePrivateDnsNamespaceRequest { Id: string | undefined; UpdaterRequestId?: string | undefined; Namespace: PrivateDnsNamespaceChange | undefined; } export interface UpdatePrivateDnsNamespaceResponse { OperationId?: string | undefined; } export interface UpdatePublicDnsNamespaceRequest { Id: string | undefined; UpdaterRequestId?: string | undefined; Namespace: PublicDnsNamespaceChange | undefined; } export interface UpdatePublicDnsNamespaceResponse { OperationId?: string | undefined; } export interface ServiceChange { Description?: string | undefined; DnsConfig?: DnsConfigChange | undefined; HealthCheckConfig?: HealthCheckConfig | undefined; } export interface UpdateServiceRequest { Id: string | undefined; Service: ServiceChange | undefined; } export interface UpdateServiceResponse { OperationId?: string | undefined; } export interface UpdateServiceAttributesRequest { ServiceId: string | undefined; Attributes: Record | undefined; } export interface UpdateServiceAttributesResponse {}