import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Creates an alias from a key/certificate pair. The structure of the request is controlled by the `format` query parameter: - `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. Set `Content-Type: multipart/form-data` and include the `keyFile`, `certFile`, and `password` (if keys are encrypted) fields in the request body. If uploading to a truststore, omit `keyFile`. - `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type: multipart/form-data`, provide the file in the `file` field, and include the `password` field if the file is encrypted in the request body. - `selfsignedcert` - A new private key and certificate are generated. Set `Content-Type: application/json` and include CertificateGenerationSpec in the request body. * Auto-naming is currently not supported for this resource. */ export declare class Alias extends pulumi.CustomResource { /** * Get an existing Alias 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Alias; /** * Returns true if the given object is an instance of Alias. 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 Alias; /** * Alias for the key/certificate pair. Values must match the regular expression `[\w\s-.]{1,255}`. This must be provided for all formats except `selfsignedcert`; self-signed certs may specify the alias in either this parameter or the JSON body. */ readonly alias: pulumi.Output; /** * Chain of certificates under this alias. */ readonly certsInfo: pulumi.Output; readonly environmentId: pulumi.Output; /** * Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12` */ readonly format: pulumi.Output; /** * Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed. */ readonly ignoreExpiryValidation: pulumi.Output; /** * Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`. */ readonly ignoreNewlineValidation: pulumi.Output; readonly keystoreId: pulumi.Output; readonly organizationId: pulumi.Output; /** * DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set `Content-type: multipart/form-data` part with name `password`. Password for the private key file, if required. */ readonly password: pulumi.Output; /** * Type of alias. */ readonly type: pulumi.Output; /** * Create a Alias 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: AliasArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Alias resource. */ export interface AliasArgs { /** * Alias for the key/certificate pair. Values must match the regular expression `[\w\s-.]{1,255}`. This must be provided for all formats except `selfsignedcert`; self-signed certs may specify the alias in either this parameter or the JSON body. */ alias?: pulumi.Input; /** * The HTTP Content-Type header value specifying the content type of the body. */ contentType?: pulumi.Input; /** * The HTTP request/response body as raw binary. */ data?: pulumi.Input; environmentId: pulumi.Input; /** * Application specific response metadata. Must be set in the first response for streaming APIs. */ extensions?: pulumi.Input; }>[]>; /** * File to upload. */ file?: pulumi.Input; /** * Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12` */ format: pulumi.Input; /** * Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed. */ ignoreExpiryValidation?: pulumi.Input; /** * Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`. */ ignoreNewlineValidation?: pulumi.Input; keystoreId: pulumi.Input; organizationId: pulumi.Input; /** * DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set `Content-type: multipart/form-data` part with name `password`. Password for the private key file, if required. */ password?: pulumi.Input; }