"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.HttpNamespace=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var namespace_1=()=>{var tmp=require("./namespace");return namespace_1=()=>tmp,tmp},service_1=()=>{var tmp=require("./service");return service_1=()=>tmp,tmp},servicediscovery_generated_1=()=>{var tmp=require("./servicediscovery.generated");return servicediscovery_generated_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class HttpNamespace extends core_1().Resource{static fromHttpNamespaceAttributes(scope,id,attrs){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_HttpNamespaceAttributes(attrs)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromHttpNamespaceAttributes),error}class Import extends core_1().Resource{constructor(){super(...arguments),this.namespaceName=attrs.namespaceName,this.namespaceId=attrs.namespaceId,this.namespaceArn=attrs.namespaceArn,this.type=namespace_1().NamespaceType.HTTP}}return new Import(scope,id)}constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_HttpNamespaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,HttpNamespace),error}const ns=new(servicediscovery_generated_1()).CfnHttpNamespace(this,"Resource",{name:props.name,description:props.description});this.namespaceName=props.name,this.namespaceId=ns.attrId,this.namespaceArn=ns.attrArn,this.type=namespace_1().NamespaceType.HTTP}get httpNamespaceArn(){return this.namespaceArn}get httpNamespaceName(){return this.namespaceName}get httpNamespaceId(){return this.namespaceId}createService(id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_BaseServiceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.createService),error}return new(service_1()).Service(this,id,{namespace:this,...props})}}exports.HttpNamespace=HttpNamespace,_a=JSII_RTTI_SYMBOL_1,HttpNamespace[_a]={fqn:"aws-cdk-lib.aws_servicediscovery.HttpNamespace",version:"2.148.1"};
