RouterNetworkInterface

class aws_cdk.aws_mediaconnect_alpha.RouterNetworkInterface(scope, id, *, configuration, region_name=None, router_network_interface_name=None, tags=None)

Bases: Resource

(experimental) Defines a AWS Elemental MediaConnect Router Network Interface.

Stability:

experimental

ExampleMetadata:

infused

Example:

# stack: Stack
# security_group: ec2.ISecurityGroup
# subnet: ec2.ISubnet


private_interface = RouterNetworkInterface(stack, "PrivateInterface",
    router_network_interface_name="private-interface",
    configuration=RouterNetworkConfiguration.vpc(
        security_groups=[security_group],
        subnet=subnet
    )
)
Parameters:
  • scope (Construct)

  • id (str)

  • configuration (RouterNetworkConfiguration) – (experimental) Network configuration for the router network interface.

  • region_name (Optional[str]) – (experimental) The AWS Region where the router network interface will be created. Default: - Same region as the stack

  • router_network_interface_name (Optional[str]) – (experimental) The name of the router network interface. Default: - Generated automatically

  • tags (Optional[Mapping[str, str]]) – (experimental) Tags to add to the network interface. Default: - No tagging

Stability:

experimental

Methods

apply_cross_stack_reference_strength(strength)

Override the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified mechanism instead of the global default determined by the @aws-cdk/core:defaultCrossStackReferences context key. This is useful for selectively weakening specific references to avoid the “deadly embrace” problem without changing the app-wide default.

Parameters:

strength (ReferenceStrength) –

  • The reference strength to use for this resource.

Return type:

None

apply_removal_policy(policy)

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).

Parameters:

policy (RemovalPolicy)

Return type:

None

to_string()

Returns a string representation of this construct.

Return type:

str

with_(*mixins)

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. Use multiple with() calls if subsequent mixins should apply to added constructs.

Parameters:

mixins (IMixin)

Return type:

IConstruct

Attributes

PROPERTY_INJECTION_ID = '@aws-cdk.aws-mediaconnect-alpha.RouterNetworkInterface'
created_at

(experimental) The date and time the router network interface was created.

Stability:

experimental

Attribute:

true

env

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.

node

The tree node.

router_network_interface_arn

(experimental) The Amazon Resource Name (ARN) of the router network interface.

Stability:

experimental

router_network_interface_id

(experimental) The unique identifier of the router network interface.

Stability:

experimental

router_network_interface_ref

(experimental) A reference to a RouterNetworkInterface resource.

Stability:

experimental

stack

The stack in which this resource is defined.

updated_at

(experimental) The date and time the router network interface was last updated.

Stability:

experimental

Attribute:

true

Static Methods

classmethod from_router_network_interface_arn(scope, id, router_network_interface_arn)

(experimental) Import an existing Router Network Interface from its ARN.

Parameters:
  • scope (Construct) – The parent construct.

  • id (str) – The construct id.

  • router_network_interface_arn (str) – The ARN of the Router Network Interface.

Return type:

IRouterNetworkInterface

Returns:

A Router Network Interface construct

Stability:

experimental

classmethod from_router_network_interface_attributes(scope, id, *, router_network_interface_arn, router_network_interface_id=None)

(experimental) Import an existing Router Network Interface from its attributes.

Provide routerNetworkInterfaceId when importing an interface that was deployed externally — otherwise accessing it on the imported construct will throw.

Parameters:
  • scope (Construct) – The parent construct.

  • id (str) – The construct id.

  • router_network_interface_arn (str) – (experimental) The Amazon Resource Name (ARN) of the router network interface.

  • router_network_interface_id (Optional[str]) – (experimental) The unique identifier of the router network interface. Default: - accessing routerNetworkInterfaceId on the imported interface throws; only provide when available.

Return type:

IRouterNetworkInterface

Returns:

A Router Network Interface construct

Stability:

experimental

classmethod is_construct(x)

Checks if x is a construct.

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Construct.

classmethod is_owned_resource(construct)

Returns true if the construct was created by CDK, and false otherwise.

Parameters:

construct (IConstruct)

Return type:

bool

classmethod is_resource(construct)

Check whether the given construct is a Resource.

Parameters:

construct (IConstruct)

Return type:

bool