package awscdkapigatewayv2alpha import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch" "github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2/internal" ) // Represents a Stage. // Experimental. type IStage interface { awscdk.IResource // Return the given named metric for this HTTP Api Gateway Stage. // Experimental. Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The name of the stage; // // its primary identifier. // Experimental. StageName() *string // The URL to this stage. // Experimental. Url() *string } // The jsii proxy for IStage type jsiiProxy_IStage struct { internal.Type__awscdkIResource } func (i *jsiiProxy_IStage) Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := i.validateMetricParameters(metricName, props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( i, "metric", []interface{}{metricName, props}, &returns, ) return returns } func (j *jsiiProxy_IStage) StageName() *string { var returns *string _jsii_.Get( j, "stageName", &returns, ) return returns } func (j *jsiiProxy_IStage) Url() *string { var returns *string _jsii_.Get( j, "url", &returns, ) return returns }