@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
108 lines (107 loc) • 3.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Allows management of a Yandex.Cloud IAM [service account](https://cloud.yandex.com/docs/iam/concepts/users/service-accounts).
* To assign roles and permissions, use the yandex_iam_service_account_iam_binding,
* yandex.IamServiceAccountIamMember and
* yandex.IamServiceAccountIamPolicy resources.
*
* ## Example Usage
*
* This snippet creates a service account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const sa = new yandex.IamServiceAccount("sa", {
* description: "service account to manage VMs",
* });
* ```
*
* ## Import
*
* A service account can be imported using the `id` of the resource, e.g.
*
* ```sh
* $ pulumi import yandex:index/iamServiceAccount:IamServiceAccount sa account_id
* ```
*/
export declare class IamServiceAccount extends pulumi.CustomResource {
/**
* Get an existing IamServiceAccount 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?: IamServiceAccountState, opts?: pulumi.CustomResourceOptions): IamServiceAccount;
/**
* Returns true if the given object is an instance of IamServiceAccount. 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 IamServiceAccount;
readonly createdAt: pulumi.Output<string>;
/**
* Description of the service account.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* ID of the folder that the service account will be created in.
* Defaults to the provider folder configuration.
*/
readonly folderId: pulumi.Output<string>;
/**
* Name of the service account.
* Can be updated without creating a new resource.
*/
readonly name: pulumi.Output<string>;
/**
* Create a IamServiceAccount 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?: IamServiceAccountArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IamServiceAccount resources.
*/
export interface IamServiceAccountState {
createdAt?: pulumi.Input<string>;
/**
* Description of the service account.
*/
description?: pulumi.Input<string>;
/**
* ID of the folder that the service account will be created in.
* Defaults to the provider folder configuration.
*/
folderId?: pulumi.Input<string>;
/**
* Name of the service account.
* Can be updated without creating a new resource.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IamServiceAccount resource.
*/
export interface IamServiceAccountArgs {
/**
* Description of the service account.
*/
description?: pulumi.Input<string>;
/**
* ID of the folder that the service account will be created in.
* Defaults to the provider folder configuration.
*/
folderId?: pulumi.Input<string>;
/**
* Name of the service account.
* Can be updated without creating a new resource.
*/
name?: pulumi.Input<string>;
}