@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:38.518Z") public class CfnFlowVpcInterface extends CfnResource implements IInspectable
The AWS::MediaConnect::FlowVpcInterface resource is a connection between your AWS Elemental MediaConnect flow and a virtual private cloud (VPC) that you created using the Amazon Virtual Private Cloud service.
To avoid streaming your content over the public internet, you can add up to two VPC interfaces to your flow and use those connections to transfer content between your VPC and MediaConnect.
You can update an existing flow to add a VPC interface. If you haven’t created the flow yet, you must create the flow with a temporary standard source by doing the following:
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.mediaconnect.*; CfnFlowVpcInterface cfnFlowVpcInterface = CfnFlowVpcInterface.Builder.create(this, "MyCfnFlowVpcInterface") .flowArn("flowArn") .name("name") .roleArn("roleArn") .securityGroupIds(List.of("securityGroupIds")) .subnetId("subnetId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnFlowVpcInterface.Builder
A fluent builder for
CfnFlowVpcInterface . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnFlowVpcInterface(Construct scope,
java.lang.String id,
CfnFlowVpcInterfaceProps props)
Create a new `AWS::MediaConnect::FlowVpcInterface`.
|
protected |
CfnFlowVpcInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFlowVpcInterface(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAttrNetworkInterfaceIds()
The IDs of the network interfaces that MediaConnect created in your account.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getFlowArn()
The Amazon Resource Name (ARN) of the flow.
|
java.lang.String |
getName()
The name of the VPC Interface.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service.
|
java.util.List<java.lang.String> |
getSecurityGroupIds()
The VPC security groups that you want MediaConnect to use for your VPC configuration.
|
java.lang.String |
getSubnetId()
The subnet IDs that you want to use for your VPC interface.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setFlowArn(java.lang.String value)
The Amazon Resource Name (ARN) of the flow.
|
void |
setName(java.lang.String value)
The name of the VPC Interface.
|
void |
setRoleArn(java.lang.String value)
The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service.
|
void |
setSecurityGroupIds(java.util.List<java.lang.String> value)
The VPC security groups that you want MediaConnect to use for your VPC configuration.
|
void |
setSubnetId(java.lang.String value)
The subnet IDs that you want to use for your VPC interface.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnFlowVpcInterface(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFlowVpcInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnFlowVpcInterface(Construct scope, java.lang.String id, CfnFlowVpcInterfaceProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.util.List<java.lang.String> getAttrNetworkInterfaceIds()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getFlowArn()
public void setFlowArn(java.lang.String value)
public java.lang.String getName()
This value must be unique within the current flow.
public void setName(java.lang.String value)
This value must be unique within the current flow.
public java.lang.String getRoleArn()
public void setRoleArn(java.lang.String value)
public java.util.List<java.lang.String> getSecurityGroupIds()
You must include at least one security group in the request.
public void setSecurityGroupIds(java.util.List<java.lang.String> value)
You must include at least one security group in the request.
public java.lang.String getSubnetId()
A range of IP addresses in your VPC. When you create your VPC, you specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC CIDR block.
The subnets that you use across all VPC interfaces on the flow must be in the same Availability Zone as the flow.
public void setSubnetId(java.lang.String value)
A range of IP addresses in your VPC. When you create your VPC, you specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC CIDR block.
The subnets that you use across all VPC interfaces on the flow must be in the same Availability Zone as the flow.