@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
102 lines (101 loc) • 4.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## yandex\_function\_iam\_binding
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const function_iam = new yandex.FunctionIamBinding("function-iam", {
* functionId: "your-function-id",
* members: ["system:allUsers"],
* role: "serverless.functions.invoker",
* });
* ```
*/
export declare class FunctionIamBinding extends pulumi.CustomResource {
/**
* Get an existing FunctionIamBinding 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?: FunctionIamBindingState, opts?: pulumi.CustomResourceOptions): FunctionIamBinding;
/**
* Returns true if the given object is an instance of FunctionIamBinding. 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 FunctionIamBinding;
/**
* The [Yandex Cloud Function](https://cloud.yandex.com/docs/functions/) ID to apply a binding to.
*/
readonly functionId: pulumi.Output<string>;
/**
* Identities that will be granted the privilege in `role`.
* Each entry can have one of the following values:
* * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account.
* * **serviceAccount:{service_account_id}**: A unique service account ID.
* * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group)
*/
readonly members: pulumi.Output<string[]>;
/**
* The role that should be applied. See [roles](https://cloud.yandex.com/docs/functions/security/)
*/
readonly role: pulumi.Output<string>;
readonly sleepAfter: pulumi.Output<number | undefined>;
/**
* Create a FunctionIamBinding 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: FunctionIamBindingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering FunctionIamBinding resources.
*/
export interface FunctionIamBindingState {
/**
* The [Yandex Cloud Function](https://cloud.yandex.com/docs/functions/) ID to apply a binding to.
*/
functionId?: pulumi.Input<string>;
/**
* Identities that will be granted the privilege in `role`.
* Each entry can have one of the following values:
* * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account.
* * **serviceAccount:{service_account_id}**: A unique service account ID.
* * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group)
*/
members?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The role that should be applied. See [roles](https://cloud.yandex.com/docs/functions/security/)
*/
role?: pulumi.Input<string>;
sleepAfter?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a FunctionIamBinding resource.
*/
export interface FunctionIamBindingArgs {
/**
* The [Yandex Cloud Function](https://cloud.yandex.com/docs/functions/) ID to apply a binding to.
*/
functionId: pulumi.Input<string>;
/**
* Identities that will be granted the privilege in `role`.
* Each entry can have one of the following values:
* * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account.
* * **serviceAccount:{service_account_id}**: A unique service account ID.
* * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group)
*/
members: pulumi.Input<pulumi.Input<string>[]>;
/**
* The role that should be applied. See [roles](https://cloud.yandex.com/docs/functions/security/)
*/
role: pulumi.Input<string>;
sleepAfter?: pulumi.Input<number>;
}