interface IGateway
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.IGateway |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#IGateway |
Java | software.amazon.awscdk.services.mediaconnect.alpha.IGateway |
Python | aws_cdk.aws_mediaconnect_alpha.IGateway |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป IGateway |
Implements
IDependable, IConstruct, IEnvironment, IResource, IGateway
Implemented by
Gateway
Obtainable from
Gateway.fromGatewayArn()
Interface for Gateway.
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| gateway | string | The Amazon Resource Name (ARN) of the gateway. |
| gateway | Gateway | A reference to a Gateway resource. |
| node | Node | The tree node. |
| stack | Stack | The stack in which this resource is defined. |
| gateway | string | The current state of the gateway. |
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
gatewayArn
Type:
string
The Amazon Resource Name (ARN) of the gateway.
gatewayRef
Type:
Gateway
A reference to a Gateway resource.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
gatewayState?
Type:
string
(optional)
The current state of the gateway.
Methods
| Name | Description |
|---|---|
| apply | Apply the given removal policy to this resource. |
| metric(metricName, props?) | Create a CloudWatch metric for this gateway. |
| metric | Metric for the number of packets dropped by egress bridges hosted on this gateway. |
| metric | Metric for the total number of packets sent from egress bridges hosted on this gateway. |
| metric | Metric for the number of packets dropped by ingress bridges hosted on this gateway. |
| metric | Metric for the total number of packets received by ingress bridges hosted on this gateway. |
| with(...mixins) | Applies one or more mixins to this construct. |
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
metric(metricName, props?)
public metric(metricName: string, props?: MetricOptions): Metric
Parameters
- metricName
string - props
MetricOptions
Returns
Create a CloudWatch metric for this gateway.
The gateway ARN is set as the GatewayARN dimension automatically. For
metrics that require additional dimensions (such as NetworkName,
InstanceId for a specific appliance, or BridgeSourceName), pass them
via props.dimensionsMap.
See the MediaConnect documentation for available metric names (for example
IngressBridgeBitRate, EgressBridgeBitRate, IngressBridgeSourcePacketLossPercent).
metricEgressBridgeDroppedPackets(props?)
public metricEgressBridgeDroppedPackets(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for the number of packets dropped by egress bridges hosted on this gateway.
Pair with {@link metricEgressBridgeTotalPackets} to chart a dropped-packet percentage.
For per-bridge data, pass dimensionsMap: { BridgeSourceName: '...' }.
metricEgressBridgeTotalPackets(props?)
public metricEgressBridgeTotalPackets(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for the total number of packets sent from egress bridges hosted on this gateway.
Pair with {@link metricEgressBridgeDroppedPackets} to chart an egress dropped-packet
percentage. For per-bridge data, pass dimensionsMap: { BridgeSourceName: '...' }.
metricIngressBridgeDroppedPackets(props?)
public metricIngressBridgeDroppedPackets(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for the number of packets dropped by ingress bridges hosted on this gateway.
Pair with {@link metricIngressBridgeTotalPackets} to chart a dropped-packet percentage.
For per-bridge data, pass dimensionsMap: { BridgeSourceName: '...' }.
metricIngressBridgeTotalPackets(props?)
public metricIngressBridgeTotalPackets(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for the total number of packets received by ingress bridges hosted on this gateway.
Pair with {@link metricIngressBridgeDroppedPackets} to chart an ingress dropped-packet
percentage. For per-bridge data, pass dimensionsMap: { BridgeSourceName: '...' }.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixinโ The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

.NET
Go
Java
Python
TypeScript (