import * as pulumi from "@pulumi/pulumi"; /** * Manages an AWS End User Messaging SMS Protect Configuration. A protect configuration sets country rules that allow, block, monitor, or filter messages sent to each destination country. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.pinpoint.Smsvoicev2ProtectConfiguration("example", {}); * ``` * * ### Country Rules * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.pinpoint.Smsvoicev2ProtectConfiguration("example", { * deletionProtectionEnabled: true, * smsCountryRules: { * CA: "FILTER", * DE: "MONITOR", * RU: "BLOCK", * }, * voiceCountryRules: { * RU: "BLOCK", * }, * tags: { * Name: "example", * }, * }); * ``` * * ## Import * * > **Note:** AWS doesn't allow deleting a protect configuration while it is associated with a configuration set, is the account default, or has deletion protection enabled. * * ### Identity Schema * * #### Required * * * `id` - (String) ID of the protect configuration. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import an AWS End User Messaging SMS Protect Configuration using the `id`. For example: * * ```sh * $ pulumi import aws:pinpoint/smsvoicev2ProtectConfiguration:Smsvoicev2ProtectConfiguration example protect-abcdef0123456789abcdef0123456789 * ``` */ export declare class Smsvoicev2ProtectConfiguration extends pulumi.CustomResource { /** * Get an existing Smsvoicev2ProtectConfiguration 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?: Smsvoicev2ProtectConfigurationState, opts?: pulumi.CustomResourceOptions): Smsvoicev2ProtectConfiguration; /** * Check whether an existing Smsvoicev2ProtectConfiguration resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: Smsvoicev2ProtectConfigurationState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Smsvoicev2ProtectConfiguration. 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 Smsvoicev2ProtectConfiguration; /** * Whether the protect configuration is the account default. */ readonly accountDefault: pulumi.Output; /** * ARN of the protect configuration. */ readonly arn: pulumi.Output; /** * Time when the protect configuration was created, in [RFC3339 format](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8). */ readonly createdTimestamp: pulumi.Output; /** * Whether deletion protection is enabled. When `true`, the protect configuration can't be deleted. */ readonly deletionProtectionEnabled: pulumi.Output; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is `BLOCK`. */ readonly mmsCountryRules: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is `BLOCK`. */ readonly rcsCountryRules: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are `BLOCK`, `FILTER`, and `MONITOR`. */ readonly smsCountryRules: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is `BLOCK`. * * > **Note:** AWS allows messages to every country by default. Each `*_country_rules` map lists only the countries that differ from that default, so `ALLOW` is not a valid value. Removing a country from a map resets it to `ALLOW`. Removing a map resets every country for that message type to `ALLOW`. * * > **Note:** The countries each message type supports differ and are validated by AWS. See [Supported countries and regions](https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html) in the AWS End User Messaging SMS User Guide. `FILTER` and `MONITOR` incur additional charges for AIT risk evaluation. See [Country rule modes](https://docs.aws.amazon.com/sms-voice/latest/userguide/filter-and-monitor-messages.html) for details. */ readonly voiceCountryRules: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Smsvoicev2ProtectConfiguration 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?: Smsvoicev2ProtectConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Smsvoicev2ProtectConfiguration resources. */ export interface Smsvoicev2ProtectConfigurationState { /** * Whether the protect configuration is the account default. */ accountDefault?: pulumi.Input; /** * ARN of the protect configuration. */ arn?: pulumi.Input; /** * Time when the protect configuration was created, in [RFC3339 format](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8). */ createdTimestamp?: pulumi.Input; /** * Whether deletion protection is enabled. When `true`, the protect configuration can't be deleted. */ deletionProtectionEnabled?: pulumi.Input; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is `BLOCK`. */ mmsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is `BLOCK`. */ rcsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are `BLOCK`, `FILTER`, and `MONITOR`. */ smsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is `BLOCK`. * * > **Note:** AWS allows messages to every country by default. Each `*_country_rules` map lists only the countries that differ from that default, so `ALLOW` is not a valid value. Removing a country from a map resets it to `ALLOW`. Removing a map resets every country for that message type to `ALLOW`. * * > **Note:** The countries each message type supports differ and are validated by AWS. See [Supported countries and regions](https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html) in the AWS End User Messaging SMS User Guide. `FILTER` and `MONITOR` incur additional charges for AIT risk evaluation. See [Country rule modes](https://docs.aws.amazon.com/sms-voice/latest/userguide/filter-and-monitor-messages.html) for details. */ voiceCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } /** * The set of arguments for constructing a Smsvoicev2ProtectConfiguration resource. */ export interface Smsvoicev2ProtectConfigurationArgs { /** * Whether deletion protection is enabled. When `true`, the protect configuration can't be deleted. */ deletionProtectionEnabled?: pulumi.Input; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is `BLOCK`. */ mmsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is `BLOCK`. */ rcsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are `BLOCK`, `FILTER`, and `MONITOR`. */ smsCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is `BLOCK`. * * > **Note:** AWS allows messages to every country by default. Each `*_country_rules` map lists only the countries that differ from that default, so `ALLOW` is not a valid value. Removing a country from a map resets it to `ALLOW`. Removing a map resets every country for that message type to `ALLOW`. * * > **Note:** The countries each message type supports differ and are validated by AWS. See [Supported countries and regions](https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html) in the AWS End User Messaging SMS User Guide. `FILTER` and `MONITOR` incur additional charges for AIT risk evaluation. See [Country rule modes](https://docs.aws.amazon.com/sms-voice/latest/userguide/filter-and-monitor-messages.html) for details. */ voiceCountryRules?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=smsvoicev2ProtectConfiguration.d.ts.map