> **Experimental**
>
> `@aws-cdk/aws-mediapackagev2-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# IChannelGroup

Interface for AWS Elemental MediaPackage V2 Channel Group.

Extends: [IResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResource.html), [IChannelGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_mediapackagev2.IChannelGroupRef.html)
Implemented by: [ChannelGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.ChannelGroup.html)
Obtainable from: [ChannelGroup.fromChannelGroupArn](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.ChannelGroup.html#fromchannelgrouparn), [ChannelGroup.fromChannelGroupAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.ChannelGroup.html#fromchannelgroupattributes)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/group.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-mediapackagev2-alpha/lib/group.ts#L18)

## Properties

- `channelGroupArn`: string — The Amazon Resource Name (ARN) associated with the resource.

- `channelGroupName`: string — The name that describes the channel group.

  The name is the primary identifier for the channel group.

- `channelGroupRef`: [ChannelGroupReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_mediapackagev2.ChannelGroupReference.html) — A reference to a ChannelGroup resource.

- `createdAt`: string — The date and time the channel group was created.

- `egressDomain`: string — The egress domain where packaged content is available.

  Use this as the origin domain when configuring a CDN such as Amazon CloudFront.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — 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.

- `modifiedAt`: string — The date and time the channel group was modified.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `addChannel(id: string, options?: ChannelOptions): Channel` — Add Channel for this Channel Group.

- `applyRemovalPolicy(policy: RemovalPolicy): void` — 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: string, props?: MetricOptions): Metric` — Create a CloudWatch metric.

  **Parameters**

  - `metricName` — name of the metric.
  - `props` — metric options.

- `metricEgressBytes(props?: MetricOptions): Metric` — Returns Metric for Egress Bytes.

- `metricEgressRequestCount(props?: MetricOptions): Metric` — Returns Metric for Egress Request Count.

- `metricEgressResponseTime(props?: MetricOptions): Metric` — Returns Metric for Egress Response time.

- `metricIngressBytes(options?: MetricOptions): Metric` — Returns Metric for Ingress Bytes.

- `metricIngressRequestCount(props?: MetricOptions): Metric` — Returns Metric for Ingress Request Count.

- `metricIngressResponseTime(props?: MetricOptions): Metric` — Returns Metric for Ingress response time.

- `with(...mixins: IMixin[]): IConstruct` — 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.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
