Class CfnNetworkInterfacePermission.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInterfacePermission.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInterfacePermission>
- Enclosing class:
- CfnNetworkInterfacePermission
@Stability(Stable)
public static final class CfnNetworkInterfacePermission.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInterfacePermission>
A fluent builder for
CfnNetworkInterfacePermission.-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId(String awsAccountId) The AWS account ID.build()networkInterfaceId(String networkInterfaceId) The ID of the network interface.permission(String permission) The type of permission to grant:INSTANCE-ATTACHorEIP-ASSOCIATE.
-
Method Details
-
create
@Stability(Stable) public static CfnNetworkInterfacePermission.Builder create(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnNetworkInterfacePermission.Builder.
-
awsAccountId
The AWS account ID.- Parameters:
awsAccountId- The AWS account ID. This parameter is required.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnNetworkInterfacePermission.Builder networkInterfaceId(String networkInterfaceId) The ID of the network interface.- Parameters:
networkInterfaceId- The ID of the network interface. This parameter is required.- Returns:
this
-
permission
The type of permission to grant:INSTANCE-ATTACHorEIP-ASSOCIATE.- Parameters:
permission- The type of permission to grant:INSTANCE-ATTACHorEIP-ASSOCIATE. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInterfacePermission>- Returns:
- a newly built instance of
CfnNetworkInterfacePermission.
-