import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to lookup information about the current AWS partition in * which the provider is working. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getPartition({}); * const s3Policy = current.then(current => aws.iam.getPolicyDocument({ * statements: [{ * sid: "1", * actions: ["s3:ListBucket"], * resources: [`arn:${current.partition}:s3:::my-bucket`], * }], * })); * ``` */ export declare function getPartition(args?: GetPartitionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPartition. */ export interface GetPartitionArgs { /** * (**Deprecated**) Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). Use `partition` instead. * * @deprecated Use 'partition' instead. This attribute will be removed in a future version of the provider. */ id?: string; } /** * A collection of values returned by getPartition. */ export interface GetPartitionResult { /** * Base DNS domain name for the current partition (e.g., `amazonaws.com` in AWS Commercial, `amazonaws.com.cn` in AWS China). */ readonly dnsSuffix: string; /** * (**Deprecated**) Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). Use `partition` instead. * * @deprecated Use 'partition' instead. This attribute will be removed in a future version of the provider. */ readonly id: string; /** * Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). */ readonly partition: string; /** * Prefix of service names (e.g., `com.amazonaws` in AWS Commercial, `cn.com.amazonaws` in AWS China). */ readonly reverseDnsPrefix: string; } /** * Use this data source to lookup information about the current AWS partition in * which the provider is working. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getPartition({}); * const s3Policy = current.then(current => aws.iam.getPolicyDocument({ * statements: [{ * sid: "1", * actions: ["s3:ListBucket"], * resources: [`arn:${current.partition}:s3:::my-bucket`], * }], * })); * ``` */ export declare function getPartitionOutput(args?: GetPartitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPartition. */ export interface GetPartitionOutputArgs { /** * (**Deprecated**) Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). Use `partition` instead. * * @deprecated Use 'partition' instead. This attribute will be removed in a future version of the provider. */ id?: pulumi.Input; } //# sourceMappingURL=getPartition.d.ts.map