import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Description * * ## Example Usage * * ### Developer Connect Account Connector Github * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "GITHUB", * scopes: ["repo"], * }, * }); * ``` * ### Developer Connect Account Connector Gitlab * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "GITLAB", * scopes: ["api"], * }, * }); * ``` * ### Developer Connect Account Connector Google * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "GOOGLE", * scopes: ["https://www.googleapis.com/auth/drive.readonly"], * }, * }); * ``` * ### Developer Connect Account Connector Sentry * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "SENTRY", * scopes: ["org:read"], * }, * }); * ``` * ### Developer Connect Account Connector Rovo * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "ROVO", * scopes: ["rovo"], * }, * }); * ``` * ### Developer Connect Account Connector New Relic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "NEW_RELIC", * scopes: [], * }, * }); * ``` * ### Developer Connect Account Connector Datastax * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_account_connector = new gcp.developerconnect.AccountConnector("my-account-connector", { * location: "us-central1", * accountConnectorId: "tf-test-ac", * providerOauthConfig: { * systemProviderId: "DATASTAX", * scopes: [], * }, * }); * ``` * * ## Import * * AccountConnector can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/accountConnectors/{{account_connector_id}}` * * `{{project}}/{{location}}/{{account_connector_id}}` * * `{{location}}/{{account_connector_id}}` * * When using the `pulumi import` command, AccountConnector can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default projects/{{project}}/locations/{{location}}/accountConnectors/{{account_connector_id}} * $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default {{project}}/{{location}}/{{account_connector_id}} * $ pulumi import gcp:developerconnect/accountConnector:AccountConnector default {{location}}/{{account_connector_id}} * ``` */ export declare class AccountConnector extends pulumi.CustomResource { /** * Get an existing AccountConnector 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?: AccountConnectorState, opts?: pulumi.CustomResourceOptions): AccountConnector; /** * Returns true if the given object is an instance of AccountConnector. 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 AccountConnector; /** * Required. The ID to use for the AccountConnector, which will become the final * component of the AccountConnector's resource name. Its format should adhere * to https://google.aip.dev/122#resource-id-segments Names must be unique * per-project per-location. */ readonly accountConnectorId: pulumi.Output; /** * Optional. Allows users to store small amounts of arbitrary data. * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ readonly annotations: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Output only. The timestamp when the userConnection was created. */ readonly createTime: pulumi.Output; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ readonly effectiveAnnotations: pulumi.Output<{ [key: string]: string; }>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Optional. Labels as key value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The location of the resource. */ readonly location: pulumi.Output; /** * Identifier. The resource name of the userConnection, in the format * `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`. */ readonly name: pulumi.Output; /** * Output only. Start OAuth flow by clicking on this URL. */ readonly oauthStartUri: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * ProviderOAuthConfig is the OAuth config for a provider. * Structure is documented below. */ readonly providerOauthConfig: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Output only. The timestamp when the userConnection was updated. */ readonly updateTime: pulumi.Output; /** * Create a AccountConnector 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: AccountConnectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccountConnector resources. */ export interface AccountConnectorState { /** * Required. The ID to use for the AccountConnector, which will become the final * component of the AccountConnector's resource name. Its format should adhere * to https://google.aip.dev/122#resource-id-segments Names must be unique * per-project per-location. */ accountConnectorId?: pulumi.Input; /** * Optional. Allows users to store small amounts of arbitrary data. * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Output only. The timestamp when the userConnection was created. */ createTime?: pulumi.Input; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ effectiveAnnotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Optional. Labels as key value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the resource. */ location?: pulumi.Input; /** * Identifier. The resource name of the userConnection, in the format * `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`. */ name?: pulumi.Input; /** * Output only. Start OAuth flow by clicking on this URL. */ oauthStartUri?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * ProviderOAuthConfig is the OAuth config for a provider. * Structure is documented below. */ providerOauthConfig?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Output only. The timestamp when the userConnection was updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a AccountConnector resource. */ export interface AccountConnectorArgs { /** * Required. The ID to use for the AccountConnector, which will become the final * component of the AccountConnector's resource name. Its format should adhere * to https://google.aip.dev/122#resource-id-segments Names must be unique * per-project per-location. */ accountConnectorId: pulumi.Input; /** * Optional. Allows users to store small amounts of arbitrary data. * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Optional. Labels as key value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the resource. */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * ProviderOAuthConfig is the OAuth config for a provider. * Structure is documented below. */ providerOauthConfig?: pulumi.Input; }