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 since v1.166.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as std from "@pulumi/std";
const _default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultGetAccount = alicloud.getAccount({});
const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: "terraform-example",
cidrBlock: "172.17.3.0/24",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: "terraform-example",
cidrBlock: "172.17.3.0/24",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: "terraform-example",
vpcId: defaultNetwork.id,
});
const defaultEcsNetworkInterface = new alicloud.ecs.EcsNetworkInterface("default", {
networkInterfaceName: "terraform-example",
vswitchId: defaultSwitch.id,
securityGroupIds: [defaultSecurityGroup.id],
description: "terraform-example",
primaryIpAddress: defaultSwitch.cidrBlock.apply(cidrBlock => std.cidrhostOutput({
input: cidrBlock,
host: 100,
})).apply(invoke => invoke.result),
tags: {
Created: "TF",
For: "example",
},
resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.ids?.[0]),
});
const example = new alicloud.ecs.EcsNetworkInterfacePermission("example", {
accountId: defaultGetAccount.then(defaultGetAccount => defaultGetAccount.id),
networkInterfaceId: defaultEcsNetworkInterface.id,
permission: "InstanceAttach",
force: true,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_std as std
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_get_account = alicloud.get_account()
default_get_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_network = alicloud.vpc.Network("default",
vpc_name="terraform-example",
cidr_block="172.17.3.0/24")
default_switch = alicloud.vpc.Switch("default",
vswitch_name="terraform-example",
cidr_block="172.17.3.0/24",
vpc_id=default_network.id,
zone_id=default.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("default",
name="terraform-example",
vpc_id=default_network.id)
default_ecs_network_interface = alicloud.ecs.EcsNetworkInterface("default",
network_interface_name="terraform-example",
vswitch_id=default_switch.id,
security_group_ids=[default_security_group.id],
description="terraform-example",
primary_ip_address=default_switch.cidr_block.apply(lambda cidr_block: std.cidrhost_output(input=cidr_block,
host=100)).apply(lambda invoke: invoke.result),
tags={
"Created": "TF",
"For": "example",
},
resource_group_id=default_get_resource_groups.ids[0])
example = alicloud.ecs.EcsNetworkInterfacePermission("example",
account_id=default_get_account.id,
network_interface_id=default_ecs_network_interface.id,
permission="InstanceAttach",
force=True)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultGetAccount, err := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String("terraform-example"),
CidrBlock: pulumi.String("172.17.3.0/24"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String("terraform-example"),
CidrBlock: pulumi.String("172.17.3.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Zones[0].Id),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String("terraform-example"),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultEcsNetworkInterface, err := ecs.NewEcsNetworkInterface(ctx, "default", &ecs.EcsNetworkInterfaceArgs{
NetworkInterfaceName: pulumi.String("terraform-example"),
VswitchId: defaultSwitch.ID(),
SecurityGroupIds: pulumi.StringArray{
defaultSecurityGroup.ID(),
},
Description: pulumi.String("terraform-example"),
PrimaryIpAddress: pulumi.String(defaultSwitch.CidrBlock.ApplyT(func(cidrBlock string) (std.CidrhostResult, error) {
return std.CidrhostResult(interface{}(std.CidrhostOutput(ctx, std.CidrhostOutputArgs{
Input: cidrBlock,
Host: 100,
}, nil))), nil
}).(std.CidrhostResultOutput).ApplyT(func(invoke std.CidrhostResult) (*string, error) {
return invoke.Result, nil
}).(pulumi.StringPtrOutput)),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("example"),
},
ResourceGroupId: pulumi.String(defaultGetResourceGroups.Ids[0]),
})
if err != nil {
return err
}
_, err = ecs.NewEcsNetworkInterfacePermission(ctx, "example", &ecs.EcsNetworkInterfacePermissionArgs{
AccountId: pulumi.String(defaultGetAccount.Id),
NetworkInterfaceId: defaultEcsNetworkInterface.ID(),
Permission: pulumi.String("InstanceAttach"),
Force: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultGetAccount = AliCloud.GetAccount.Invoke();
var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = "terraform-example",
CidrBlock = "172.17.3.0/24",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = "terraform-example",
CidrBlock = "172.17.3.0/24",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = "terraform-example",
VpcId = defaultNetwork.Id,
});
var defaultEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("default", new()
{
NetworkInterfaceName = "terraform-example",
VswitchId = defaultSwitch.Id,
SecurityGroupIds = new[]
{
defaultSecurityGroup.Id,
},
Description = "terraform-example",
PrimaryIpAddress = defaultSwitch.CidrBlock.Apply(cidrBlock => Std.Cidrhost.Invoke(new()
{
Input = cidrBlock,
Host = 100,
})).Apply(invoke => invoke.Result),
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
});
var example = new AliCloud.Ecs.EcsNetworkInterfacePermission("example", new()
{
AccountId = defaultGetAccount.Apply(getAccountResult => getAccountResult.Id),
NetworkInterfaceId = defaultEcsNetworkInterface.Id,
Permission = "InstanceAttach",
Force = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.EcsNetworkInterface;
import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.CidrhostArgs;
import com.pulumi.alicloud.ecs.EcsNetworkInterfacePermission;
import com.pulumi.alicloud.ecs.EcsNetworkInterfacePermissionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultGetAccount = AlicloudFunctions.getAccount(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName("terraform-example")
.cidrBlock("172.17.3.0/24")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName("terraform-example")
.cidrBlock("172.17.3.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[0].id())
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name("terraform-example")
.vpcId(defaultNetwork.id())
.build());
var defaultEcsNetworkInterface = new EcsNetworkInterface("defaultEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()
.networkInterfaceName("terraform-example")
.vswitchId(defaultSwitch.id())
.securityGroupIds(defaultSecurityGroup.id())
.description("terraform-example")
.primaryIpAddress(defaultSwitch.cidrBlock().applyValue(_cidrBlock -> StdFunctions.cidrhost(CidrhostArgs.builder()
.input(_cidrBlock)
.host(100)
.build())).applyValue(_invoke -> _invoke.result()))
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.resourceGroupId(defaultGetResourceGroups.ids()[0])
.build());
var example = new EcsNetworkInterfacePermission("example", EcsNetworkInterfacePermissionArgs.builder()
.accountId(defaultGetAccount.id())
.networkInterfaceId(defaultEcsNetworkInterface.id())
.permission("InstanceAttach")
.force(true)
.build());
}
}
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: terraform-example
cidrBlock: 172.17.3.0/24
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: terraform-example
cidrBlock: 172.17.3.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${default.zones[0].id}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: terraform-example
vpcId: ${defaultNetwork.id}
defaultEcsNetworkInterface:
type: alicloud:ecs:EcsNetworkInterface
name: default
properties:
networkInterfaceName: terraform-example
vswitchId: ${defaultSwitch.id}
securityGroupIds:
- ${defaultSecurityGroup.id}
description: terraform-example
primaryIpAddress:
fn::invoke:
function: std:cidrhost
arguments:
input: ${defaultSwitch.cidrBlock}
host: 100
return: result
tags:
Created: TF
For: example
resourceGroupId: ${defaultGetResourceGroups.ids[0]}
example:
type: alicloud:ecs:EcsNetworkInterfacePermission
properties:
accountId: ${defaultGetAccount.id}
networkInterfaceId: ${defaultEcsNetworkInterface.id}
permission: InstanceAttach
force: true
variables:
default:
fn::invoke:
function: alicloud:getZones
arguments:
availableResourceCreation: VSwitch
defaultGetAccount:
fn::invoke:
function: alicloud:getAccount
arguments: {}
defaultGetResourceGroups:
fn::invoke:
function: alicloud:resourcemanager:getResourceGroups
arguments: {}
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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)
resources: _: type: alicloud:ecs:EcsNetworkInterfacePermission get: id: ${id}
- 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.