airbyte.SourceTrustpilot
Explore with Pulumi AI
SourceTrustpilot Resource
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.airbyte.SourceTrustpilot;
import com.pulumi.airbyte.SourceTrustpilotArgs;
import com.pulumi.airbyte.inputs.SourceTrustpilotConfigurationArgs;
import com.pulumi.airbyte.inputs.SourceTrustpilotConfigurationCredentialsArgs;
import com.pulumi.airbyte.inputs.SourceTrustpilotConfigurationCredentialsApiKeyArgs;
import com.pulumi.airbyte.inputs.SourceTrustpilotConfigurationCredentialsOAuth20Args;
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 mySourceTrustpilot = new SourceTrustpilot("mySourceTrustpilot", SourceTrustpilotArgs.builder()
            .configuration(SourceTrustpilotConfigurationArgs.builder()
                .business_units("...")
                .credentials(SourceTrustpilotConfigurationCredentialsArgs.builder()
                    .apiKey(SourceTrustpilotConfigurationCredentialsApiKeyArgs.builder()
                        .clientId("...my_client_id...")
                        .build())
                    .oAuth20(SourceTrustpilotConfigurationCredentialsOAuth20Args.builder()
                        .accessToken("...my_access_token...")
                        .clientId("...my_client_id...")
                        .clientSecret("...my_client_secret...")
                        .refreshToken("...my_refresh_token...")
                        .tokenExpiryDate("2021-01-15T05:49:01.644Z")
                        .build())
                    .build())
                .start_date("%Y-%m-%dT%H:%M:%SZ")
                .build())
            .definitionId("581c2bce-fff6-4e03-8eb1-8a082e29e93b")
            .secretId("...my_secret_id...")
            .workspaceId("89025dc4-af49-4123-85ae-315d50718f82")
            .build());
    }
}
resources:
  mySourceTrustpilot:
    type: airbyte:SourceTrustpilot
    properties:
      configuration:
        business_units:
          - '...'
        credentials:
          apiKey:
            clientId: '...my_client_id...'
          oAuth20:
            accessToken: '...my_access_token...'
            clientId: '...my_client_id...'
            clientSecret: '...my_client_secret...'
            refreshToken: '...my_refresh_token...'
            tokenExpiryDate: 2021-01-15T05:49:01.644Z
        start_date: '%Y-%m-%dT%H:%M:%SZ'
      definitionId: 581c2bce-fff6-4e03-8eb1-8a082e29e93b
      secretId: '...my_secret_id...'
      workspaceId: 89025dc4-af49-4123-85ae-315d50718f82
Create SourceTrustpilot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceTrustpilot(name: string, args: SourceTrustpilotArgs, opts?: CustomResourceOptions);@overload
def SourceTrustpilot(resource_name: str,
                     args: SourceTrustpilotArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def SourceTrustpilot(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     configuration: Optional[SourceTrustpilotConfigurationArgs] = None,
                     workspace_id: Optional[str] = None,
                     definition_id: Optional[str] = None,
                     name: Optional[str] = None,
                     secret_id: Optional[str] = None)func NewSourceTrustpilot(ctx *Context, name string, args SourceTrustpilotArgs, opts ...ResourceOption) (*SourceTrustpilot, error)public SourceTrustpilot(string name, SourceTrustpilotArgs args, CustomResourceOptions? opts = null)
public SourceTrustpilot(String name, SourceTrustpilotArgs args)
public SourceTrustpilot(String name, SourceTrustpilotArgs args, CustomResourceOptions options)
type: airbyte:SourceTrustpilot
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 SourceTrustpilotArgs
- 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 SourceTrustpilotArgs
- 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 SourceTrustpilotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceTrustpilotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceTrustpilotArgs
- 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 sourceTrustpilotResource = new Airbyte.SourceTrustpilot("sourceTrustpilotResource", new()
{
    Configuration = new Airbyte.Inputs.SourceTrustpilotConfigurationArgs
    {
        BusinessUnits = new[]
        {
            "string",
        },
        Credentials = new Airbyte.Inputs.SourceTrustpilotConfigurationCredentialsArgs
        {
            ApiKey = new Airbyte.Inputs.SourceTrustpilotConfigurationCredentialsApiKeyArgs
            {
                ClientId = "string",
            },
            OAuth20 = new Airbyte.Inputs.SourceTrustpilotConfigurationCredentialsOAuth20Args
            {
                AccessToken = "string",
                ClientId = "string",
                ClientSecret = "string",
                RefreshToken = "string",
                TokenExpiryDate = "string",
            },
        },
        StartDate = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceTrustpilot(ctx, "sourceTrustpilotResource", &airbyte.SourceTrustpilotArgs{
Configuration: &.SourceTrustpilotConfigurationArgs{
BusinessUnits: pulumi.StringArray{
pulumi.String("string"),
},
Credentials: &.SourceTrustpilotConfigurationCredentialsArgs{
ApiKey: &.SourceTrustpilotConfigurationCredentialsApiKeyArgs{
ClientId: pulumi.String("string"),
},
OAuth20: &.SourceTrustpilotConfigurationCredentialsOAuth20Args{
AccessToken: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
RefreshToken: pulumi.String("string"),
TokenExpiryDate: pulumi.String("string"),
},
},
StartDate: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceTrustpilotResource = new SourceTrustpilot("sourceTrustpilotResource", SourceTrustpilotArgs.builder()
    .configuration(SourceTrustpilotConfigurationArgs.builder()
        .businessUnits("string")
        .credentials(SourceTrustpilotConfigurationCredentialsArgs.builder()
            .apiKey(SourceTrustpilotConfigurationCredentialsApiKeyArgs.builder()
                .clientId("string")
                .build())
            .oAuth20(SourceTrustpilotConfigurationCredentialsOAuth20Args.builder()
                .accessToken("string")
                .clientId("string")
                .clientSecret("string")
                .refreshToken("string")
                .tokenExpiryDate("string")
                .build())
            .build())
        .startDate("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_trustpilot_resource = airbyte.SourceTrustpilot("sourceTrustpilotResource",
    configuration={
        "business_units": ["string"],
        "credentials": {
            "api_key": {
                "client_id": "string",
            },
            "o_auth20": {
                "access_token": "string",
                "client_id": "string",
                "client_secret": "string",
                "refresh_token": "string",
                "token_expiry_date": "string",
            },
        },
        "start_date": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceTrustpilotResource = new airbyte.SourceTrustpilot("sourceTrustpilotResource", {
    configuration: {
        businessUnits: ["string"],
        credentials: {
            apiKey: {
                clientId: "string",
            },
            oAuth20: {
                accessToken: "string",
                clientId: "string",
                clientSecret: "string",
                refreshToken: "string",
                tokenExpiryDate: "string",
            },
        },
        startDate: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceTrustpilot
properties:
    configuration:
        businessUnits:
            - string
        credentials:
            apiKey:
                clientId: string
            oAuth20:
                accessToken: string
                clientId: string
                clientSecret: string
                refreshToken: string
                tokenExpiryDate: string
        startDate: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceTrustpilot 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 SourceTrustpilot resource accepts the following input properties:
- Configuration
SourceTrustpilot Configuration 
- WorkspaceId string
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- Configuration
SourceTrustpilot Configuration Args 
- WorkspaceId string
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceTrustpilot Configuration 
- workspaceId String
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceTrustpilot Configuration 
- workspaceId string
- definitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name string
- Name of the source e.g. dev-mysql-instance.
- secretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceTrustpilot Configuration Args 
- workspace_id str
- definition_id str
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name str
- Name of the source e.g. dev-mysql-instance.
- secret_id str
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration Property Map
- workspaceId String
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceTrustpilot resource produces the following output properties:
- CreatedAt double
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceId string
- SourceType string
- CreatedAt float64
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceId string
- SourceType string
- createdAt Double
- id String
- The provider-assigned unique ID for this managed resource.
- sourceId String
- sourceType String
- createdAt number
- id string
- The provider-assigned unique ID for this managed resource.
- sourceId string
- sourceType string
- created_at float
- id str
- The provider-assigned unique ID for this managed resource.
- source_id str
- source_type str
- createdAt Number
- id String
- The provider-assigned unique ID for this managed resource.
- sourceId String
- sourceType String
Look up Existing SourceTrustpilot Resource
Get an existing SourceTrustpilot 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?: SourceTrustpilotState, opts?: CustomResourceOptions): SourceTrustpilot@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceTrustpilotConfigurationArgs] = None,
        created_at: Optional[float] = None,
        definition_id: Optional[str] = None,
        name: Optional[str] = None,
        secret_id: Optional[str] = None,
        source_id: Optional[str] = None,
        source_type: Optional[str] = None,
        workspace_id: Optional[str] = None) -> SourceTrustpilotfunc GetSourceTrustpilot(ctx *Context, name string, id IDInput, state *SourceTrustpilotState, opts ...ResourceOption) (*SourceTrustpilot, error)public static SourceTrustpilot Get(string name, Input<string> id, SourceTrustpilotState? state, CustomResourceOptions? opts = null)public static SourceTrustpilot get(String name, Output<String> id, SourceTrustpilotState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceTrustpilot    get:      id: ${id}- 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.
- Configuration
SourceTrustpilot Configuration 
- CreatedAt double
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- SourceId string
- SourceType string
- WorkspaceId string
- Configuration
SourceTrustpilot Configuration Args 
- CreatedAt float64
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- SourceId string
- SourceType string
- WorkspaceId string
- configuration
SourceTrustpilot Configuration 
- createdAt Double
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId String
- sourceType String
- workspaceId String
- configuration
SourceTrustpilot Configuration 
- createdAt number
- definitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name string
- Name of the source e.g. dev-mysql-instance.
- secretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId string
- sourceType string
- workspaceId string
- configuration
SourceTrustpilot Configuration Args 
- created_at float
- definition_id str
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name str
- Name of the source e.g. dev-mysql-instance.
- secret_id str
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- source_id str
- source_type str
- workspace_id str
- configuration Property Map
- createdAt Number
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId String
- sourceType String
- workspaceId String
Supporting Types
SourceTrustpilotConfiguration, SourceTrustpilotConfigurationArgs      
- BusinessUnits List<string>
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- Credentials
SourceTrustpilot Configuration Credentials 
- StartDate string
- For streams with sync. method incremental the start date time to be used
- BusinessUnits []string
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- Credentials
SourceTrustpilot Configuration Credentials 
- StartDate string
- For streams with sync. method incremental the start date time to be used
- businessUnits List<String>
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- credentials
SourceTrustpilot Configuration Credentials 
- startDate String
- For streams with sync. method incremental the start date time to be used
- businessUnits string[]
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- credentials
SourceTrustpilot Configuration Credentials 
- startDate string
- For streams with sync. method incremental the start date time to be used
- business_units Sequence[str]
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- credentials
SourceTrustpilot Configuration Credentials 
- start_date str
- For streams with sync. method incremental the start date time to be used
- businessUnits List<String>
- The names of business units which shall be synchronized. Some streams e.g. configuredbusinessunits or private_reviews use this configuration.
- credentials Property Map
- startDate String
- For streams with sync. method incremental the start date time to be used
SourceTrustpilotConfigurationCredentials, SourceTrustpilotConfigurationCredentialsArgs        
- ApiKey SourceTrustpilot Configuration Credentials Api Key 
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- OAuth20
SourceTrustpilot Configuration Credentials OAuth20 
- ApiKey SourceTrustpilot Configuration Credentials Api Key 
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- OAuth20
SourceTrustpilot Configuration Credentials OAuth20 
- apiKey SourceTrustpilot Configuration Credentials Api Key 
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- oAuth20 SourceTrustpilot Configuration Credentials OAuth20 
- apiKey SourceTrustpilot Configuration Credentials Api Key 
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- oAuth20 SourceTrustpilot Configuration Credentials OAuth20 
- api_key SourceTrustpilot Configuration Credentials Api Key 
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- o_auth20 SourceTrustpilot Configuration Credentials OAuth20 
- apiKey Property Map
- The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
- oAuth20 Property Map
SourceTrustpilotConfigurationCredentialsApiKey, SourceTrustpilotConfigurationCredentialsApiKeyArgs            
- ClientId string
- The API key of the Trustpilot API application.
- ClientId string
- The API key of the Trustpilot API application.
- clientId String
- The API key of the Trustpilot API application.
- clientId string
- The API key of the Trustpilot API application.
- client_id str
- The API key of the Trustpilot API application.
- clientId String
- The API key of the Trustpilot API application.
SourceTrustpilotConfigurationCredentialsOAuth20, SourceTrustpilotConfigurationCredentialsOAuth20Args          
- AccessToken string
- Access Token for making authenticated requests.
- ClientId string
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- ClientSecret string
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- RefreshToken string
- The key to refresh the expired access_token.
- TokenExpiry stringDate 
- The date-time when the access token should be refreshed.
- AccessToken string
- Access Token for making authenticated requests.
- ClientId string
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- ClientSecret string
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- RefreshToken string
- The key to refresh the expired access_token.
- TokenExpiry stringDate 
- The date-time when the access token should be refreshed.
- accessToken String
- Access Token for making authenticated requests.
- clientId String
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- clientSecret String
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- refreshToken String
- The key to refresh the expired access_token.
- tokenExpiry StringDate 
- The date-time when the access token should be refreshed.
- accessToken string
- Access Token for making authenticated requests.
- clientId string
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- clientSecret string
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- refreshToken string
- The key to refresh the expired access_token.
- tokenExpiry stringDate 
- The date-time when the access token should be refreshed.
- access_token str
- Access Token for making authenticated requests.
- client_id str
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- client_secret str
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- refresh_token str
- The key to refresh the expired access_token.
- token_expiry_ strdate 
- The date-time when the access token should be refreshed.
- accessToken String
- Access Token for making authenticated requests.
- clientId String
- The API key of the Trustpilot API application. (represents the OAuth Client ID)
- clientSecret String
- The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- refreshToken String
- The key to refresh the expired access_token.
- tokenExpiry StringDate 
- The date-time when the access token should be refreshed.
Import
$ pulumi import airbyte:index/sourceTrustpilot:SourceTrustpilot my_airbyte_source_trustpilot ""
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- airbyte airbytehq/terraform-provider-airbyte
- License
- Notes
- This Pulumi package is based on the airbyteTerraform Provider.