62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { BaseNamespaceProps, INamespace } from './namespace';
|
|
import { NamespaceType } from './namespace';
|
|
import type { BaseServiceProps } from './service';
|
|
import { Service } from './service';
|
|
import { Resource } from '../../core';
|
|
import type { HttpNamespaceReference, IHttpNamespaceRef } from '../../interfaces/generated/aws-servicediscovery-interfaces.generated';
|
|
export interface HttpNamespaceProps extends BaseNamespaceProps {
|
|
}
|
|
export interface IHttpNamespace extends INamespace, IHttpNamespaceRef {
|
|
}
|
|
export interface HttpNamespaceAttributes {
|
|
/**
|
|
* A name for the Namespace.
|
|
*/
|
|
readonly namespaceName: string;
|
|
/**
|
|
* Namespace Id for the Namespace.
|
|
*/
|
|
readonly namespaceId: string;
|
|
/**
|
|
* Namespace ARN for the Namespace.
|
|
*/
|
|
readonly namespaceArn: string;
|
|
}
|
|
/**
|
|
* Define an HTTP Namespace
|
|
*/
|
|
export declare class HttpNamespace extends Resource implements IHttpNamespace {
|
|
/** Uniquely identifies this class. */
|
|
static readonly PROPERTY_INJECTION_ID: string;
|
|
static fromHttpNamespaceAttributes(scope: Construct, id: string, attrs: HttpNamespaceAttributes): IHttpNamespace;
|
|
/**
|
|
* A name for the namespace.
|
|
*/
|
|
readonly namespaceName: string;
|
|
/**
|
|
* Namespace Id for the namespace.
|
|
*/
|
|
readonly namespaceId: string;
|
|
/**
|
|
* Namespace Arn for the namespace.
|
|
*/
|
|
readonly namespaceArn: string;
|
|
/**
|
|
* Type of the namespace.
|
|
*/
|
|
readonly type: NamespaceType;
|
|
constructor(scope: Construct, id: string, props: HttpNamespaceProps);
|
|
/** @attribute */
|
|
get httpNamespaceArn(): string;
|
|
/** @attribute */
|
|
get httpNamespaceName(): string;
|
|
/** @attribute */
|
|
get httpNamespaceId(): string;
|
|
get httpNamespaceRef(): HttpNamespaceReference;
|
|
/**
|
|
* Creates a service within the namespace
|
|
*/
|
|
createService(id: string, props?: BaseServiceProps): Service;
|
|
}
|