Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
CdiInputProps Struct
Properties for a CDI (uncompressed) input.
| Stability | Experimental |
|---|---|
| Source | lib/input.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_ec2 as interfaces_ec2 } from 'aws-cdk-lib/interfaces';
declare const role: iam.Role;
declare const securityGroupRef: interfaces_ec2.ISecurityGroupRef;
declare const subnetRef: interfaces_ec2.ISubnetRef;
const cdiInputProps: medialive_alpha.CdiInputProps = {
subnets: [subnetRef],
// the properties below are optional
role: role,
securityGroups: [securityGroupRef],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
from aws_cdk import aws_iam as iam
from aws_cdk.interfaces import aws_ec2 as interfaces_ec2
# role: iam.Role
# security_group_ref: interfaces_ec2.ISecurityGroupRef
# subnet_ref: interfaces_ec2.ISubnetRef
cdi_input_props = medialive_alpha.CdiInputProps(
subnets=[subnet_ref],
# the properties below are optional
role=role,
security_groups=[security_group_ref]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.interfaces.ec2.*;
Role role;
ISecurityGroupRef securityGroupRef;
ISubnetRef subnetRef;
CdiInputProps cdiInputProps = CdiInputProps.builder()
.subnets(List.of(subnetRef))
// the properties below are optional
.role(role)
.securityGroups(List.of(securityGroupRef))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.Interfaces.EC2;
Role role;
ISecurityGroupRef securityGroupRef;
ISubnetRef subnetRef;
var cdiInputProps = new CdiInputProps {
Subnets = new [] { subnetRef },
// the properties below are optional
Role = role,
SecurityGroups = new [] { securityGroupRef }
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
var securityGroupRef ISecurityGroupRef
var subnetRef ISubnetRef
cdiInputProps := &CdiInputProps{
Subnets: []ISubnetRef{
subnetRef,
},
// the properties below are optional
Role: role,
SecurityGroups: []ISecurityGroupRef{
securityGroupRef,
},
}
Properties
The IAM role MediaLive assumes to create network interfaces in the VPC.
Default: a role is created with the medialive.amazonaws.com service principal [disable-awslint:prefer-ref-interface]
When omitted, a role is created and granted the required permissions. When you provide a role, no permissions are added — you own all the permissions it needs.
securityGroupsoptionalISecurityGroupRef[]security_groupsoptionaltyping.List[ISecurityGroupRef]securityGroupsoptionalList<ISecurityGroupRef>SecurityGroupsoptionalISecurityGroupRef[]SecurityGroupsoptional*[]ISecurityGroupRef #Security groups to attach to the CDI input network interfaces.
Default: VPC default security group
subnetsISubnetRef[]subnetstyping.List[ISubnetRef]subnetsList<ISubnetRef>SubnetsISubnetRef[]Subnets*[]ISubnetRef required #Two VPC subnets, in two different availability zones, for the CDI input network interfaces.