dbtcloud.OauthConfiguration
Explore with Pulumi AI
Configure an external OAuth integration for the data warehouse. Currently supports Okta and Entra ID (i.e. Azure AD) for Snowflake.
See the documentation for more information on how to configure it.
Create OauthConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OauthConfiguration(name: string, args: OauthConfigurationArgs, opts?: CustomResourceOptions);
@overload
def OauthConfiguration(resource_name: str,
args: OauthConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OauthConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
authorize_url: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
redirect_uri: Optional[str] = None,
token_url: Optional[str] = None,
type: Optional[str] = None,
application_id_uri: Optional[str] = None,
name: Optional[str] = None)
func NewOauthConfiguration(ctx *Context, name string, args OauthConfigurationArgs, opts ...ResourceOption) (*OauthConfiguration, error)
public OauthConfiguration(string name, OauthConfigurationArgs args, CustomResourceOptions? opts = null)
public OauthConfiguration(String name, OauthConfigurationArgs args)
public OauthConfiguration(String name, OauthConfigurationArgs args, CustomResourceOptions options)
type: dbtcloud:OauthConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OauthConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OauthConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OauthConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OauthConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OauthConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var oauthConfigurationResource = new DbtCloud.OauthConfiguration("oauthConfigurationResource", new()
{
AuthorizeUrl = "string",
ClientId = "string",
ClientSecret = "string",
RedirectUri = "string",
TokenUrl = "string",
Type = "string",
ApplicationIdUri = "string",
Name = "string",
});
example, err := dbtcloud.NewOauthConfiguration(ctx, "oauthConfigurationResource", &dbtcloud.OauthConfigurationArgs{
AuthorizeUrl: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
RedirectUri: pulumi.String("string"),
TokenUrl: pulumi.String("string"),
Type: pulumi.String("string"),
ApplicationIdUri: pulumi.String("string"),
Name: pulumi.String("string"),
})
var oauthConfigurationResource = new OauthConfiguration("oauthConfigurationResource", OauthConfigurationArgs.builder()
.authorizeUrl("string")
.clientId("string")
.clientSecret("string")
.redirectUri("string")
.tokenUrl("string")
.type("string")
.applicationIdUri("string")
.name("string")
.build());
oauth_configuration_resource = dbtcloud.OauthConfiguration("oauthConfigurationResource",
authorize_url="string",
client_id="string",
client_secret="string",
redirect_uri="string",
token_url="string",
type="string",
application_id_uri="string",
name="string")
const oauthConfigurationResource = new dbtcloud.OauthConfiguration("oauthConfigurationResource", {
authorizeUrl: "string",
clientId: "string",
clientSecret: "string",
redirectUri: "string",
tokenUrl: "string",
type: "string",
applicationIdUri: "string",
name: "string",
});
type: dbtcloud:OauthConfiguration
properties:
applicationIdUri: string
authorizeUrl: string
clientId: string
clientSecret: string
name: string
redirectUri: string
tokenUrl: string
type: string
OauthConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OauthConfiguration resource accepts the following input properties:
- string
- The Authorize URL for the OAuth integration
- Client
Id string - The Client ID for the OAuth integration
- Client
Secret string - The Client secret for the OAuth integration
- Redirect
Uri string - The redirect URL for the OAuth integration
- Token
Url string - The Token URL for the OAuth integration
- Type string
- The type of OAuth integration (
entra
orokta
) - Application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- Name string
- The name of OAuth integration
- string
- The Authorize URL for the OAuth integration
- Client
Id string - The Client ID for the OAuth integration
- Client
Secret string - The Client secret for the OAuth integration
- Redirect
Uri string - The redirect URL for the OAuth integration
- Token
Url string - The Token URL for the OAuth integration
- Type string
- The type of OAuth integration (
entra
orokta
) - Application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- Name string
- The name of OAuth integration
- String
- The Authorize URL for the OAuth integration
- client
Id String - The Client ID for the OAuth integration
- client
Secret String - The Client secret for the OAuth integration
- redirect
Uri String - The redirect URL for the OAuth integration
- token
Url String - The Token URL for the OAuth integration
- type String
- The type of OAuth integration (
entra
orokta
) - application
Id StringUri - The Application ID URI for the OAuth integration. Only for Entra
- name String
- The name of OAuth integration
- string
- The Authorize URL for the OAuth integration
- client
Id string - The Client ID for the OAuth integration
- client
Secret string - The Client secret for the OAuth integration
- redirect
Uri string - The redirect URL for the OAuth integration
- token
Url string - The Token URL for the OAuth integration
- type string
- The type of OAuth integration (
entra
orokta
) - application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- name string
- The name of OAuth integration
- str
- The Authorize URL for the OAuth integration
- client_
id str - The Client ID for the OAuth integration
- client_
secret str - The Client secret for the OAuth integration
- redirect_
uri str - The redirect URL for the OAuth integration
- token_
url str - The Token URL for the OAuth integration
- type str
- The type of OAuth integration (
entra
orokta
) - application_
id_ struri - The Application ID URI for the OAuth integration. Only for Entra
- name str
- The name of OAuth integration
- String
- The Authorize URL for the OAuth integration
- client
Id String - The Client ID for the OAuth integration
- client
Secret String - The Client secret for the OAuth integration
- redirect
Uri String - The redirect URL for the OAuth integration
- token
Url String - The Token URL for the OAuth integration
- type String
- The type of OAuth integration (
entra
orokta
) - application
Id StringUri - The Application ID URI for the OAuth integration. Only for Entra
- name String
- The name of OAuth integration
Outputs
All input properties are implicitly available as output properties. Additionally, the OauthConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OauthConfiguration Resource
Get an existing OauthConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OauthConfigurationState, opts?: CustomResourceOptions): OauthConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id_uri: Optional[str] = None,
authorize_url: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
name: Optional[str] = None,
redirect_uri: Optional[str] = None,
token_url: Optional[str] = None,
type: Optional[str] = None) -> OauthConfiguration
func GetOauthConfiguration(ctx *Context, name string, id IDInput, state *OauthConfigurationState, opts ...ResourceOption) (*OauthConfiguration, error)
public static OauthConfiguration Get(string name, Input<string> id, OauthConfigurationState? state, CustomResourceOptions? opts = null)
public static OauthConfiguration get(String name, Output<String> id, OauthConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- string
- The Authorize URL for the OAuth integration
- Client
Id string - The Client ID for the OAuth integration
- Client
Secret string - The Client secret for the OAuth integration
- Name string
- The name of OAuth integration
- Redirect
Uri string - The redirect URL for the OAuth integration
- Token
Url string - The Token URL for the OAuth integration
- Type string
- The type of OAuth integration (
entra
orokta
)
- Application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- string
- The Authorize URL for the OAuth integration
- Client
Id string - The Client ID for the OAuth integration
- Client
Secret string - The Client secret for the OAuth integration
- Name string
- The name of OAuth integration
- Redirect
Uri string - The redirect URL for the OAuth integration
- Token
Url string - The Token URL for the OAuth integration
- Type string
- The type of OAuth integration (
entra
orokta
)
- application
Id StringUri - The Application ID URI for the OAuth integration. Only for Entra
- String
- The Authorize URL for the OAuth integration
- client
Id String - The Client ID for the OAuth integration
- client
Secret String - The Client secret for the OAuth integration
- name String
- The name of OAuth integration
- redirect
Uri String - The redirect URL for the OAuth integration
- token
Url String - The Token URL for the OAuth integration
- type String
- The type of OAuth integration (
entra
orokta
)
- application
Id stringUri - The Application ID URI for the OAuth integration. Only for Entra
- string
- The Authorize URL for the OAuth integration
- client
Id string - The Client ID for the OAuth integration
- client
Secret string - The Client secret for the OAuth integration
- name string
- The name of OAuth integration
- redirect
Uri string - The redirect URL for the OAuth integration
- token
Url string - The Token URL for the OAuth integration
- type string
- The type of OAuth integration (
entra
orokta
)
- application_
id_ struri - The Application ID URI for the OAuth integration. Only for Entra
- str
- The Authorize URL for the OAuth integration
- client_
id str - The Client ID for the OAuth integration
- client_
secret str - The Client secret for the OAuth integration
- name str
- The name of OAuth integration
- redirect_
uri str - The redirect URL for the OAuth integration
- token_
url str - The Token URL for the OAuth integration
- type str
- The type of OAuth integration (
entra
orokta
)
- application
Id StringUri - The Application ID URI for the OAuth integration. Only for Entra
- String
- The Authorize URL for the OAuth integration
- client
Id String - The Client ID for the OAuth integration
- client
Secret String - The Client secret for the OAuth integration
- name String
- The name of OAuth integration
- redirect
Uri String - The redirect URL for the OAuth integration
- token
Url String - The Token URL for the OAuth integration
- type String
- The type of OAuth integration (
entra
orokta
)
Import
using import blocks (requires Terraform >= 1.5)
import {
to = dbtcloud_oauth_configuration.my_external_oauth
id = “external_oauth_id”
}
import {
to = dbtcloud_oauth_configuration.my_external_oauth
id = “12345”
}
using the older import command
$ pulumi import dbtcloud:index/oauthConfiguration:OauthConfiguration my_external_oauth "external_oauth_id"
$ pulumi import dbtcloud:index/oauthConfiguration:OauthConfiguration my_external_oauth 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.