alicloud.ecs.EcsNetworkInterfacePermission
Explore with Pulumi AI
Provides a ECS Network Interface Permission resource.
For information about ECS Network Interface Permission and how to use it, see What is Network Interface Permission.
NOTE: Available in v1.166.0+.
Create EcsNetworkInterfacePermission Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EcsNetworkInterfacePermission(name: string, args: EcsNetworkInterfacePermissionArgs, opts?: CustomResourceOptions);
@overload
def EcsNetworkInterfacePermission(resource_name: str,
args: EcsNetworkInterfacePermissionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EcsNetworkInterfacePermission(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
network_interface_id: Optional[str] = None,
permission: Optional[str] = None,
force: Optional[bool] = None)
func NewEcsNetworkInterfacePermission(ctx *Context, name string, args EcsNetworkInterfacePermissionArgs, opts ...ResourceOption) (*EcsNetworkInterfacePermission, error)
public EcsNetworkInterfacePermission(string name, EcsNetworkInterfacePermissionArgs args, CustomResourceOptions? opts = null)
public EcsNetworkInterfacePermission(String name, EcsNetworkInterfacePermissionArgs args)
public EcsNetworkInterfacePermission(String name, EcsNetworkInterfacePermissionArgs args, CustomResourceOptions options)
type: alicloud:ecs:EcsNetworkInterfacePermission
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EcsNetworkInterfacePermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EcsNetworkInterfacePermissionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EcsNetworkInterfacePermissionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EcsNetworkInterfacePermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EcsNetworkInterfacePermissionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ecsNetworkInterfacePermissionResource = new AliCloud.Ecs.EcsNetworkInterfacePermission("ecsNetworkInterfacePermissionResource", new()
{
AccountId = "string",
NetworkInterfaceId = "string",
Permission = "string",
Force = false,
});
example, err := ecs.NewEcsNetworkInterfacePermission(ctx, "ecsNetworkInterfacePermissionResource", &ecs.EcsNetworkInterfacePermissionArgs{
AccountId: pulumi.String("string"),
NetworkInterfaceId: pulumi.String("string"),
Permission: pulumi.String("string"),
Force: pulumi.Bool(false),
})
var ecsNetworkInterfacePermissionResource = new EcsNetworkInterfacePermission("ecsNetworkInterfacePermissionResource", EcsNetworkInterfacePermissionArgs.builder()
.accountId("string")
.networkInterfaceId("string")
.permission("string")
.force(false)
.build());
ecs_network_interface_permission_resource = alicloud.ecs.EcsNetworkInterfacePermission("ecsNetworkInterfacePermissionResource",
account_id="string",
network_interface_id="string",
permission="string",
force=False)
const ecsNetworkInterfacePermissionResource = new alicloud.ecs.EcsNetworkInterfacePermission("ecsNetworkInterfacePermissionResource", {
accountId: "string",
networkInterfaceId: "string",
permission: "string",
force: false,
});
type: alicloud:ecs:EcsNetworkInterfacePermission
properties:
accountId: string
force: false
networkInterfaceId: string
permission: string
EcsNetworkInterfacePermission Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EcsNetworkInterfacePermission resource accepts the following input properties:
- Account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- Network
Interface stringId - The ID of the network interface.
- Permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - Force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
.
- Account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- Network
Interface stringId - The ID of the network interface.
- Permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - Force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
.
- account
Id String - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- network
Interface StringId - The ID of the network interface.
- permission String
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - force Boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
.
- account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- network
Interface stringId - The ID of the network interface.
- permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - force boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
.
- account_
id str - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- network_
interface_ strid - The ID of the network interface.
- permission str
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
.
- account
Id String - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- network
Interface StringId - The ID of the network interface.
- permission String
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - force Boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
.
Outputs
All input properties are implicitly available as output properties. Additionally, the EcsNetworkInterfacePermission resource produces the following output properties:
Look up Existing EcsNetworkInterfacePermission Resource
Get an existing EcsNetworkInterfacePermission resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EcsNetworkInterfacePermissionState, opts?: CustomResourceOptions): EcsNetworkInterfacePermission
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
force: Optional[bool] = None,
network_interface_id: Optional[str] = None,
permission: Optional[str] = None,
status: Optional[str] = None) -> EcsNetworkInterfacePermission
func GetEcsNetworkInterfacePermission(ctx *Context, name string, id IDInput, state *EcsNetworkInterfacePermissionState, opts ...ResourceOption) (*EcsNetworkInterfacePermission, error)
public static EcsNetworkInterfacePermission Get(string name, Input<string> id, EcsNetworkInterfacePermissionState? state, CustomResourceOptions? opts = null)
public static EcsNetworkInterfacePermission get(String name, Output<String> id, EcsNetworkInterfacePermissionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- Force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
. - Network
Interface stringId - The ID of the network interface.
- Permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - Status string
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
- Account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- Force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
. - Network
Interface stringId - The ID of the network interface.
- Permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - Status string
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
- account
Id String - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- force Boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
. - network
Interface StringId - The ID of the network interface.
- permission String
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - status String
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
- account
Id string - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- force boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
. - network
Interface stringId - The ID of the network interface.
- permission string
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - status string
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
- account_
id str - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- force bool
- Whether to force deletion of Network Interface Permission. Default value:
true
. - network_
interface_ strid - The ID of the network interface.
- permission str
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - status str
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
- account
Id String - Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
- force Boolean
- Whether to force deletion of Network Interface Permission. Default value:
true
. - network
Interface StringId - The ID of the network interface.
- permission String
- The permissions of the Network Interface. Valid values:
InstanceAttach
.InstanceAttach
: Allows authorized users to mount your ENI to the other ECS instance. The ECS instance must be in the same zone as the ENI. - status String
- The Status of the Network Interface Permissions. Valid values:
Pending
,Granted
,Revoking
,Revoked
.
Import
ECS Network Interface Permission can be imported using the id, e.g.
$ pulumi import alicloud:ecs/ecsNetworkInterfacePermission:EcsNetworkInterfacePermission example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.