1. Packages
  2. Alicloud Provider
  3. API Docs
  4. ecs
  5. EcsNetworkInterfacePermission
Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi

alicloud.ecs.EcsNetworkInterfacePermission

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi

    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:

    AccountId string
    Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
    NetworkInterfaceId string
    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.
    AccountId string
    Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
    NetworkInterfaceId string
    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.
    accountId String
    Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
    networkInterfaceId String
    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.
    accountId string
    Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
    networkInterfaceId string
    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_id str
    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.
    accountId String
    Alibaba Cloud Partner (Certified ISV) account ID or individual user ID.
    networkInterfaceId String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the Network Interface Permissions. Valid values: Pending, Granted, Revoking, Revoked.

    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.
    The following state arguments are supported:
    AccountId 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.
    NetworkInterfaceId string
    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.
    AccountId 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.
    NetworkInterfaceId string
    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.
    accountId 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.
    networkInterfaceId String
    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.
    accountId 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.
    networkInterfaceId string
    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_id str
    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.
    accountId 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.
    networkInterfaceId String
    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.
    alicloud logo
    Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi