import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * * const testPolicy = new minio.IamPolicy("test_policy", { * name: "state-terraform-s3", * policy: `{ * \\"Version\\":\\"2012-10-17\\", * \\"Statement\\": [ * { * \\"Sid\\":\\"ListAllBucket\\", * \\"Effect\\": \\"Allow\\", * \\"Action\\": [\\"s3:PutObject\\"], * \\"Principal\\":\\"*\\", * \\"Resource\\": \\"arn:aws:s3:::state-terraform-s3/*\\" * } * ] * } * `, * }); * export const minioId = testPolicy.id; * export const minioPolicy = testPolicy.policy; * ``` */ export declare class IamPolicy extends pulumi.CustomResource { /** * Get an existing IamPolicy 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?: IamPolicyState, opts?: pulumi.CustomResourceOptions): IamPolicy; /** * Returns true if the given object is an instance of IamPolicy. 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 IamPolicy; readonly name: pulumi.Output; readonly namePrefix: pulumi.Output; readonly policy: pulumi.Output; /** * Create a IamPolicy 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: IamPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IamPolicy resources. */ export interface IamPolicyState { name?: pulumi.Input; namePrefix?: pulumi.Input; policy?: pulumi.Input; } /** * The set of arguments for constructing a IamPolicy resource. */ export interface IamPolicyArgs { name?: pulumi.Input; namePrefix?: pulumi.Input; policy: pulumi.Input; } //# sourceMappingURL=iamPolicy.d.ts.map