AuthConfig

class AuthConfig : KotlinCustomResource

The AuthConfig resource use to hold channels and connection config data. To get more information about AuthConfig, see:

Example Usage

Integrations Auth Config Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const client = new gcp.applicationintegration.Client("client", {location: "us-west1"});
const basicExample = new gcp.applicationintegration.AuthConfig("basic_example", {
location: "us-west1",
displayName: "test-authconfig",
description: "Test auth config created via terraform",
decryptedCredential: {
credentialType: "USERNAME_AND_PASSWORD",
usernameAndPassword: {
username: "test-username",
password: "test-password",
},
},
}, {
dependsOn: [client],
});
import pulumi
import pulumi_gcp as gcp
client = gcp.applicationintegration.Client("client", location="us-west1")
basic_example = gcp.applicationintegration.AuthConfig("basic_example",
location="us-west1",
display_name="test-authconfig",
description="Test auth config created via terraform",
decrypted_credential={
"credential_type": "USERNAME_AND_PASSWORD",
"username_and_password": {
"username": "test-username",
"password": "test-password",
},
},
opts = pulumi.ResourceOptions(depends_on=[client]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var client = new Gcp.ApplicationIntegration.Client("client", new()
{
Location = "us-west1",
});
var basicExample = new Gcp.ApplicationIntegration.AuthConfig("basic_example", new()
{
Location = "us-west1",
DisplayName = "test-authconfig",
Description = "Test auth config created via terraform",
DecryptedCredential = new Gcp.ApplicationIntegration.Inputs.AuthConfigDecryptedCredentialArgs
{
CredentialType = "USERNAME_AND_PASSWORD",
UsernameAndPassword = new Gcp.ApplicationIntegration.Inputs.AuthConfigDecryptedCredentialUsernameAndPasswordArgs
{
Username = "test-username",
Password = "test-password",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
client,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/applicationintegration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
client, err := applicationintegration.NewClient(ctx, "client", &applicationintegration.ClientArgs{
Location: pulumi.String("us-west1"),
})
if err != nil {
return err
}
_, err = applicationintegration.NewAuthConfig(ctx, "basic_example", &applicationintegration.AuthConfigArgs{
Location: pulumi.String("us-west1"),
DisplayName: pulumi.String("test-authconfig"),
Description: pulumi.String("Test auth config created via terraform"),
DecryptedCredential: &applicationintegration.AuthConfigDecryptedCredentialArgs{
CredentialType: pulumi.String("USERNAME_AND_PASSWORD"),
UsernameAndPassword: &applicationintegration.AuthConfigDecryptedCredentialUsernameAndPasswordArgs{
Username: pulumi.String("test-username"),
Password: pulumi.String("test-password"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
client,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.applicationintegration.Client;
import com.pulumi.gcp.applicationintegration.ClientArgs;
import com.pulumi.gcp.applicationintegration.AuthConfig;
import com.pulumi.gcp.applicationintegration.AuthConfigArgs;
import com.pulumi.gcp.applicationintegration.inputs.AuthConfigDecryptedCredentialArgs;
import com.pulumi.gcp.applicationintegration.inputs.AuthConfigDecryptedCredentialUsernameAndPasswordArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var client = new Client("client", ClientArgs.builder()
.location("us-west1")
.build());
var basicExample = new AuthConfig("basicExample", AuthConfigArgs.builder()
.location("us-west1")
.displayName("test-authconfig")
.description("Test auth config created via terraform")
.decryptedCredential(AuthConfigDecryptedCredentialArgs.builder()
.credentialType("USERNAME_AND_PASSWORD")
.usernameAndPassword(AuthConfigDecryptedCredentialUsernameAndPasswordArgs.builder()
.username("test-username")
.password("test-password")
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(client)
.build());
}
}
resources:
client:
type: gcp:applicationintegration:Client
properties:
location: us-west1
basicExample:
type: gcp:applicationintegration:AuthConfig
name: basic_example
properties:
location: us-west1
displayName: test-authconfig
description: Test auth config created via terraform
decryptedCredential:
credentialType: USERNAME_AND_PASSWORD
usernameAndPassword:
username: test-username
password: test-password
options:
dependson:
- ${client}

Import

AuthConfig can be imported using any of these accepted formats:

  • {{name}} When using the pulumi import command, AuthConfig can be imported using one of the formats above. For example:

$ pulumi import gcp:applicationintegration/authConfig:AuthConfig default {{name}}

Properties

Link copied to clipboard
val certificateId: Output<String>

Certificate id for client certificate.

Link copied to clipboard

Raw client certificate Structure is documented below.

Link copied to clipboard
val createTime: Output<String>

The timestamp when the auth config is created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val creatorEmail: Output<String>

The creator's email address. Generated based on the End User Credentials/LOAS role of the user making the call.

Link copied to clipboard
val credentialType: Output<String>

Credential type of the encrypted credential.

Link copied to clipboard

Raw auth credentials. Structure is documented below.

Link copied to clipboard
val description: Output<String>?

A description of the auth config.

Link copied to clipboard
val displayName: Output<String>

The name of the auth config.

Link copied to clipboard

Auth credential encrypted by Cloud KMS. Can be decrypted as Credential with proper KMS key. A base64-encoded string.

Link copied to clipboard

User can define the time to receive notification after which the auth config becomes invalid. Support up to 30 days. Support granularity in hours. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call.

Link copied to clipboard
val location: Output<String>

Location in which client needs to be provisioned.

Link copied to clipboard
val name: Output<String>

Resource name of the auth config.

Link copied to clipboard

User provided expiry time to override. For the example of Salesforce, username/password credentials can be valid for 6 months depending on the instance settings. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reason: Output<String>

The reason / details of the current status.

Link copied to clipboard
val state: Output<String>

The status of the auth config.

Link copied to clipboard
val updateTime: Output<String>

The timestamp when the auth config is modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val validTime: Output<String>

The time until the auth config is valid. Empty or max value is considered the auth config won't expire. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val visibility: Output<String>?

The visibility of the auth config. Possible values are: PRIVATE, CLIENT_VISIBLE.