UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

181 lines (180 loc) 5.34 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage cloudfs access * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo1 = new volcengine.cloudfs.Access("foo1", { * fsName: "tftest2", * securityGroupId: "sg-rrv1klfg5s00v0x578mx14m", * subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m", * vpcRouteEnabled: false, * }); * ``` * * ## Import * * CloudFs Access can be imported using the FsName:AccessId, e.g. * * ```sh * $ pulumi import volcengine:cloudfs/access:Access default tfname:access-**rdgmedx3fow * ``` */ export declare class Access extends pulumi.CustomResource { /** * Get an existing Access resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessState, opts?: pulumi.CustomResourceOptions): Access; /** * Returns true if the given object is an instance of Access. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Access; /** * The account id of access. */ readonly accessAccountId: pulumi.Output<number>; /** * The iam role of access. If the VPC of another account is attached, the other account needs to create a role with CFSCacheAccess permission, and enter the role name as a parameter. */ readonly accessIamRole: pulumi.Output<string | undefined>; /** * The id of access. */ readonly accessId: pulumi.Output<string>; /** * The service name of access. */ readonly accessServiceName: pulumi.Output<string>; /** * The creation time. */ readonly createdTime: pulumi.Output<string>; /** * The name of file system. */ readonly fsName: pulumi.Output<string>; /** * Whether is default access. */ readonly isDefault: pulumi.Output<boolean>; /** * The id of security group. */ readonly securityGroupId: pulumi.Output<string>; /** * Status of access. */ readonly status: pulumi.Output<string>; /** * The id of subnet. */ readonly subnetId: pulumi.Output<string>; /** * The id of vpc. */ readonly vpcId: pulumi.Output<string>; /** * Whether enable all vpc route. */ readonly vpcRouteEnabled: pulumi.Output<boolean | undefined>; /** * Create a Access resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AccessArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Access resources. */ export interface AccessState { /** * The account id of access. */ accessAccountId?: pulumi.Input<number>; /** * The iam role of access. If the VPC of another account is attached, the other account needs to create a role with CFSCacheAccess permission, and enter the role name as a parameter. */ accessIamRole?: pulumi.Input<string>; /** * The id of access. */ accessId?: pulumi.Input<string>; /** * The service name of access. */ accessServiceName?: pulumi.Input<string>; /** * The creation time. */ createdTime?: pulumi.Input<string>; /** * The name of file system. */ fsName?: pulumi.Input<string>; /** * Whether is default access. */ isDefault?: pulumi.Input<boolean>; /** * The id of security group. */ securityGroupId?: pulumi.Input<string>; /** * Status of access. */ status?: pulumi.Input<string>; /** * The id of subnet. */ subnetId?: pulumi.Input<string>; /** * The id of vpc. */ vpcId?: pulumi.Input<string>; /** * Whether enable all vpc route. */ vpcRouteEnabled?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a Access resource. */ export interface AccessArgs { /** * The account id of access. */ accessAccountId?: pulumi.Input<number>; /** * The iam role of access. If the VPC of another account is attached, the other account needs to create a role with CFSCacheAccess permission, and enter the role name as a parameter. */ accessIamRole?: pulumi.Input<string>; /** * The name of file system. */ fsName: pulumi.Input<string>; /** * The id of security group. */ securityGroupId: pulumi.Input<string>; /** * The id of subnet. */ subnetId: pulumi.Input<string>; /** * Whether enable all vpc route. */ vpcRouteEnabled?: pulumi.Input<boolean>; }