import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Named Credential resource in Oracle Cloud Infrastructure Management Agent service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/management-agent/latest/NamedCredential * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/management_agent * * Named credential creation request to given Management Agent. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNamedCredential = new oci.managementagent.NamedCredential("test_named_credential", { * managementAgentId: testManagementAgent.id, * name: namedCredentialName, * properties: [ * { * name: namedCredentialPropertiesName, * value: namedCredentialPropertiesValue, * valueCategory: namedCredentialPropertiesValueCategory, * }, * { * name: namedCredentialPropertiesName2, * value: namedCredentialPropertiesValue2, * valueCategory: namedCredentialPropertiesValueCategory2, * }, * ], * type: namedCredentialType, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: namedCredentialDescription, * freeformTags: { * "bar-key": "value", * }, * }); * const exampleNamedCredential = new oci.managementagent.NamedCredential("example_named_credential", { * managementAgentId: testManagementAgent.id, * name: "Example1", * properties: [ * { * name: "DBUserName", * value: vaultSecretId, * valueCategory: "SECRET_IDENTIFIER", * }, * { * name: "DBPassword", * value: vaultSecret2Id, * valueCategory: "SECRET_IDENTIFIER", * }, * ], * type: "DBCREDS", * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: "Example DBCREDS named credential for management agent", * freeformTags: { * "bar-key": "value", * }, * }); * ``` * * ## Import * * NamedCredentials can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ManagementAgent/namedCredential:NamedCredential test_named_credential "id" * ``` */ export declare class NamedCredential extends pulumi.CustomResource { /** * Get an existing NamedCredential 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?: NamedCredentialState, opts?: pulumi.CustomResourceOptions): NamedCredential; /** * Returns true if the given object is an instance of NamedCredential. 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 NamedCredential; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Description of the Named Credential. */ readonly description: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The Management Agent parent resource to associate this named credential with. This is the ManagementAgent resource OCID. */ readonly managementAgentId: pulumi.Output; /** * Identifier for Named Credential. This is unique for the Management Agent. */ readonly name: pulumi.Output; /** * (Updatable) Properties for the named credential */ readonly properties: pulumi.Output; /** * The current state of the named credential */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the Named Credential was created. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time the Named Credential data was last updated. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * The type of the Named Credential. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly type: pulumi.Output; /** * Create a NamedCredential 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: NamedCredentialArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamedCredential resources. */ export interface NamedCredentialState { /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Description of the Named Credential. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The Management Agent parent resource to associate this named credential with. This is the ManagementAgent resource OCID. */ managementAgentId?: pulumi.Input; /** * Identifier for Named Credential. This is unique for the Management Agent. */ name?: pulumi.Input; /** * (Updatable) Properties for the named credential */ properties?: pulumi.Input[] | undefined>; /** * The current state of the named credential */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the Named Credential was created. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time the Named Credential data was last updated. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; /** * The type of the Named Credential. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ type?: pulumi.Input; } /** * The set of arguments for constructing a NamedCredential resource. */ export interface NamedCredentialArgs { /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Description of the Named Credential. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The Management Agent parent resource to associate this named credential with. This is the ManagementAgent resource OCID. */ managementAgentId: pulumi.Input; /** * Identifier for Named Credential. This is unique for the Management Agent. */ name?: pulumi.Input; /** * (Updatable) Properties for the named credential */ properties: pulumi.Input[]>; /** * The type of the Named Credential. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ type: pulumi.Input; } //# sourceMappingURL=namedCredential.d.ts.map