Amazon CloudFormation resources generated when AWS::Serverless::NetworkConnector is specified
When you specify an AWS::Serverless::NetworkConnector, Amazon Serverless Application Model
(Amazon SAM) generates an AWS::Lambda::NetworkConnector base Amazon CloudFormation
resource.
AWS::Lambda::NetworkConnector-
LogicalId:<networkconnector‑LogicalId>Referenceable property: N/A (you must use the
LogicalIdto reference this Amazon CloudFormation resource)
In addition to this Amazon CloudFormation resource, when AWS::Serverless::NetworkConnector is
specified, Amazon SAM also generates Amazon CloudFormation resources for the following scenarios:
OperatorRole property is not specified
When you don't specify the OperatorRole property of an AWS::Serverless::NetworkConnector,
Amazon SAM generates an AWS::IAM::Role
Amazon CloudFormation resource with the AWSLambdaNetworkConnectorOperatorPolicy Amazon managed policy attached.
The role trust policy allows the lambda.amazonaws.com service principal to assume the role.
If VpcConfig specifies an ElasticIpConfiguration
whose Type isn't None, the role also gets an inline policy that allows
ec2:AllocateAddress and ec2:AssociateAddress, which the service needs to assign
Elastic IP addresses. The policy limits ec2:AssociateAddress on Elastic IP addresses to
addresses tagged for a network connector, and limits both actions on network interfaces to the
connector's own network interfaces. If the Type value is an intrinsic function, Amazon SAM can't
resolve it during the transform and adds the policy.
AWS::IAM::Role-
LogicalId:<networkconnector‑LogicalId>OperatorRole