import * as pulumi from "@pulumi/pulumi"; /** * Manages an AWS End User Messaging SMS Resource Policy. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const exampleSmsvoicev2PhoneNumber = new aws.pinpoint.Smsvoicev2PhoneNumber("example", { * isoCountryCode: "US", * messageType: "TRANSACTIONAL", * numberType: "SIMULATOR", * numberCapabilities: ["SMS"], * }); * const example = aws.iam.getPolicyDocumentOutput({ * statements: [{ * principals: [{ * type: "AWS", * identifiers: ["123456789012"], * }], * effect: "Allow", * actions: ["sms-voice:SendTextMessage"], * resources: [exampleSmsvoicev2PhoneNumber.arn], * }], * }); * const exampleSmsvoicev2ResourcePolicy = new aws.pinpoint.Smsvoicev2ResourcePolicy("example", { * resourceArn: exampleSmsvoicev2PhoneNumber.arn, * policy: example.json, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `resourceArn` (String) ARN of the End User Messaging SMS resource the policy is attached to. * * Using `pulumi import`, import the resource policy using the parent resource ARN. For example: * * ```sh * $ pulumi import aws:pinpoint/smsvoicev2ResourcePolicy:Smsvoicev2ResourcePolicy example arn:aws:sms-voice:us-east-1:123456789012:phone-number/phone-abcdef0123456789abcdef0123456789 * ``` */ export declare class Smsvoicev2ResourcePolicy extends pulumi.CustomResource { /** * Get an existing Smsvoicev2ResourcePolicy 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?: Smsvoicev2ResourcePolicyState, opts?: pulumi.CustomResourceOptions): Smsvoicev2ResourcePolicy; /** * Returns true if the given object is an instance of Smsvoicev2ResourcePolicy. 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 Smsvoicev2ResourcePolicy; /** * Resource-based policy document in JSON format. */ readonly policy: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html#cli-configure-options-region). Defaults to the region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN of the End User Messaging SMS resource — phone number, opt-out list, pool, or sender ID — to attach the policy to. * * The following arguments are optional: */ readonly resourceArn: pulumi.Output; /** * Create a Smsvoicev2ResourcePolicy 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: Smsvoicev2ResourcePolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Smsvoicev2ResourcePolicy resources. */ export interface Smsvoicev2ResourcePolicyState { /** * Resource-based policy document in JSON format. */ policy?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html#cli-configure-options-region). Defaults to the region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the End User Messaging SMS resource — phone number, opt-out list, pool, or sender ID — to attach the policy to. * * The following arguments are optional: */ resourceArn?: pulumi.Input; } /** * The set of arguments for constructing a Smsvoicev2ResourcePolicy resource. */ export interface Smsvoicev2ResourcePolicyArgs { /** * Resource-based policy document in JSON format. */ policy: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html#cli-configure-options-region). Defaults to the region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the End User Messaging SMS resource — phone number, opt-out list, pool, or sender ID — to attach the policy to. * * The following arguments are optional: */ resourceArn: pulumi.Input; } //# sourceMappingURL=smsvoicev2ResourcePolicy.d.ts.map