Skip to main content

flow_vpc_interfaces

Creates, updates, deletes or gets a flow_vpc_interface resource or lists flow_vpc_interfaces in a region

Overview

Nameflow_vpc_interfaces
TypeResource
DescriptionResource schema for AWS::MediaConnect::FlowVpcInterface
Idaws.mediaconnect.flow_vpc_interfaces

Fields

NameDatatypeDescription
flow_arnstringThe Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
namestringImmutable and has to be a unique against other VpcInterfaces in this Flow.
role_arnstringRole Arn MediaConnect can assume to create ENIs in customer's account.
security_group_idsarraySecurity Group IDs to be used on ENI.
subnet_idstringSubnet must be in the AZ of the Flow
network_interface_idsarrayIDs of the network interfaces created in customer's account by MediaConnect.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTFlowArn, Name, RoleArn, SubnetId, SecurityGroupIds, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flow_vpc_interfaces in a region.

SELECT
region,
flow_arn,
name,
role_arn,
security_group_ids,
subnet_id,
network_interface_ids
FROM aws.mediaconnect.flow_vpc_interfaces
WHERE region = 'us-east-1';

Gets all properties from an individual flow_vpc_interface.

SELECT
region,
flow_arn,
name,
role_arn,
security_group_ids,
subnet_id,
network_interface_ids
FROM aws.mediaconnect.flow_vpc_interfaces
WHERE region = 'us-east-1' AND data__Identifier = '<FlowArn>|<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new flow_vpc_interface resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediaconnect.flow_vpc_interfaces (
FlowArn,
Name,
RoleArn,
SecurityGroupIds,
SubnetId,
region
)
SELECT
'{{ FlowArn }}',
'{{ Name }}',
'{{ RoleArn }}',
'{{ SecurityGroupIds }}',
'{{ SubnetId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediaconnect.flow_vpc_interfaces
WHERE data__Identifier = '<FlowArn|Name>'
AND region = 'us-east-1';

Permissions

To operate on the flow_vpc_interfaces resource, the following permissions are required:

Create

iam:PassRole,
mediaconnect:DescribeFlow,
mediaconnect:AddFlowVpcInterfaces

Read

mediaconnect:DescribeFlow

Update

mediaconnect:DescribeFlow,
mediaconnect:AddFlowVpcInterfaces,
mediaconnect:RemoveFlowVpcInterface

Delete

mediaconnect:DescribeFlow,
mediaconnect:RemoveFlowVpcInterface

List

mediaconnect:DescribeFlow