import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages permissions for a BYOC custom cloud environment, which accounts and projects can use the cloud to deploy services. * * Note! The `accounts` and `projects` lists are authoritative. This differs from the `avn byoc cloud permissions add`, which merges into the existing set. * * Create this resource after `aiven.ByocAwsEntity` and `aiven.ByocAwsProvision` so the custom cloud environment is active before permissions are granted. If this resource is missing (for example, after a service power off), it's removed from the state and a new create plan is generated. * * > **Beta resource** * This resource is in the beta stage and may change without notice. Set the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = new aiven.ByocPermissions("example", { * organizationId: "org1a23f456789", * customCloudEnvironmentId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d", * accounts: [ * "a22ba494e096", * "a441b467e067", * ], * projects: [ * "project-prod", * "project-dev", * ], * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/byocPermissions:ByocPermissions example ORGANIZATION_ID/CUSTOM_CLOUD_ENVIRONMENT_ID * ``` */ export declare class ByocPermissions extends pulumi.CustomResource { /** * Get an existing ByocPermissions 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, state?: ByocPermissionsState, opts?: pulumi.CustomResourceOptions): ByocPermissions; /** * Returns true if the given object is an instance of ByocPermissions. 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 ByocPermissions; /** * Accounts. */ readonly accounts: pulumi.Output; /** * ID of a custom cloud environment. Changing this property forces recreation of the resource. */ readonly customCloudEnvironmentId: pulumi.Output; /** * ID of an organization. Changing this property forces recreation of the resource. */ readonly organizationId: pulumi.Output; /** * Projects. */ readonly projects: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a ByocPermissions 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: ByocPermissionsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ByocPermissions resources. */ export interface ByocPermissionsState { /** * Accounts. */ accounts?: pulumi.Input[] | undefined>; /** * ID of a custom cloud environment. Changing this property forces recreation of the resource. */ customCloudEnvironmentId?: pulumi.Input; /** * ID of an organization. Changing this property forces recreation of the resource. */ organizationId?: pulumi.Input; /** * Projects. */ projects?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a ByocPermissions resource. */ export interface ByocPermissionsArgs { /** * Accounts. */ accounts: pulumi.Input[]>; /** * ID of a custom cloud environment. Changing this property forces recreation of the resource. */ customCloudEnvironmentId: pulumi.Input; /** * ID of an organization. Changing this property forces recreation of the resource. */ organizationId: pulumi.Input; /** * Projects. */ projects: pulumi.Input[]>; timeouts?: pulumi.Input; } //# sourceMappingURL=byocPermissions.d.ts.map