airbyte.SourceSnapchatMarketing
Explore with Pulumi AI
SourceSnapchatMarketing 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.SourceSnapchatMarketing;
import com.pulumi.airbyte.SourceSnapchatMarketingArgs;
import com.pulumi.airbyte.inputs.SourceSnapchatMarketingConfigurationArgs;
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 mySourceSnapchatmarketing = new SourceSnapchatMarketing("mySourceSnapchatmarketing", SourceSnapchatMarketingArgs.builder()
            .configuration(SourceSnapchatMarketingConfigurationArgs.builder()
                .action_report_time("impression")
                .ad_account_ids("{ \"see\": \"documentation\" }")
                .client_id("...my_client_id...")
                .client_secret("...my_client_secret...")
                .end_date("2022-01-30")
                .organization_ids("{ \"see\": \"documentation\" }")
                .refresh_token("...my_refresh_token...")
                .start_date("2022-01-01")
                .swipe_up_attribution_window("7_DAY")
                .view_attribution_window("1_HOUR")
                .build())
            .definitionId("1299fa04-4937-407e-99e4-bc441ad499f0")
            .secretId("...my_secret_id...")
            .workspaceId("a5e72bda-13a9-4a82-ab4d-94fe6a570980")
            .build());
    }
}
resources:
  mySourceSnapchatmarketing:
    type: airbyte:SourceSnapchatMarketing
    properties:
      configuration:
        action_report_time: impression
        ad_account_ids:
          - '{ "see": "documentation" }'
        client_id: '...my_client_id...'
        client_secret: '...my_client_secret...'
        end_date: 2022-01-30
        organization_ids:
          - '{ "see": "documentation" }'
        refresh_token: '...my_refresh_token...'
        start_date: 2022-01-01
        swipe_up_attribution_window: 7_DAY
        view_attribution_window: 1_HOUR
      definitionId: 1299fa04-4937-407e-99e4-bc441ad499f0
      secretId: '...my_secret_id...'
      workspaceId: a5e72bda-13a9-4a82-ab4d-94fe6a570980
Create SourceSnapchatMarketing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceSnapchatMarketing(name: string, args: SourceSnapchatMarketingArgs, opts?: CustomResourceOptions);@overload
def SourceSnapchatMarketing(resource_name: str,
                            args: SourceSnapchatMarketingArgs,
                            opts: Optional[ResourceOptions] = None)
@overload
def SourceSnapchatMarketing(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            configuration: Optional[SourceSnapchatMarketingConfigurationArgs] = None,
                            workspace_id: Optional[str] = None,
                            definition_id: Optional[str] = None,
                            name: Optional[str] = None,
                            secret_id: Optional[str] = None)func NewSourceSnapchatMarketing(ctx *Context, name string, args SourceSnapchatMarketingArgs, opts ...ResourceOption) (*SourceSnapchatMarketing, error)public SourceSnapchatMarketing(string name, SourceSnapchatMarketingArgs args, CustomResourceOptions? opts = null)
public SourceSnapchatMarketing(String name, SourceSnapchatMarketingArgs args)
public SourceSnapchatMarketing(String name, SourceSnapchatMarketingArgs args, CustomResourceOptions options)
type: airbyte:SourceSnapchatMarketing
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 SourceSnapchatMarketingArgs
- 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 SourceSnapchatMarketingArgs
- 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 SourceSnapchatMarketingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceSnapchatMarketingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceSnapchatMarketingArgs
- 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 sourceSnapchatMarketingResource = new Airbyte.SourceSnapchatMarketing("sourceSnapchatMarketingResource", new()
{
    Configuration = new Airbyte.Inputs.SourceSnapchatMarketingConfigurationArgs
    {
        ClientId = "string",
        ClientSecret = "string",
        RefreshToken = "string",
        ActionReportTime = "string",
        AdAccountIds = new[]
        {
            "string",
        },
        EndDate = "string",
        OrganizationIds = new[]
        {
            "string",
        },
        StartDate = "string",
        SwipeUpAttributionWindow = "string",
        ViewAttributionWindow = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceSnapchatMarketing(ctx, "sourceSnapchatMarketingResource", &airbyte.SourceSnapchatMarketingArgs{
Configuration: &.SourceSnapchatMarketingConfigurationArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
RefreshToken: pulumi.String("string"),
ActionReportTime: pulumi.String("string"),
AdAccountIds: pulumi.StringArray{
pulumi.String("string"),
},
EndDate: pulumi.String("string"),
OrganizationIds: pulumi.StringArray{
pulumi.String("string"),
},
StartDate: pulumi.String("string"),
SwipeUpAttributionWindow: pulumi.String("string"),
ViewAttributionWindow: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceSnapchatMarketingResource = new SourceSnapchatMarketing("sourceSnapchatMarketingResource", SourceSnapchatMarketingArgs.builder()
    .configuration(SourceSnapchatMarketingConfigurationArgs.builder()
        .clientId("string")
        .clientSecret("string")
        .refreshToken("string")
        .actionReportTime("string")
        .adAccountIds("string")
        .endDate("string")
        .organizationIds("string")
        .startDate("string")
        .swipeUpAttributionWindow("string")
        .viewAttributionWindow("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_snapchat_marketing_resource = airbyte.SourceSnapchatMarketing("sourceSnapchatMarketingResource",
    configuration={
        "client_id": "string",
        "client_secret": "string",
        "refresh_token": "string",
        "action_report_time": "string",
        "ad_account_ids": ["string"],
        "end_date": "string",
        "organization_ids": ["string"],
        "start_date": "string",
        "swipe_up_attribution_window": "string",
        "view_attribution_window": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceSnapchatMarketingResource = new airbyte.SourceSnapchatMarketing("sourceSnapchatMarketingResource", {
    configuration: {
        clientId: "string",
        clientSecret: "string",
        refreshToken: "string",
        actionReportTime: "string",
        adAccountIds: ["string"],
        endDate: "string",
        organizationIds: ["string"],
        startDate: "string",
        swipeUpAttributionWindow: "string",
        viewAttributionWindow: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceSnapchatMarketing
properties:
    configuration:
        actionReportTime: string
        adAccountIds:
            - string
        clientId: string
        clientSecret: string
        endDate: string
        organizationIds:
            - string
        refreshToken: string
        startDate: string
        swipeUpAttributionWindow: string
        viewAttributionWindow: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceSnapchatMarketing 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 SourceSnapchatMarketing resource accepts the following input properties:
- Configuration
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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 SourceSnapchatMarketing 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 SourceSnapchatMarketing Resource
Get an existing SourceSnapchatMarketing 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?: SourceSnapchatMarketingState, opts?: CustomResourceOptions): SourceSnapchatMarketing@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceSnapchatMarketingConfigurationArgs] = 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) -> SourceSnapchatMarketingfunc GetSourceSnapchatMarketing(ctx *Context, name string, id IDInput, state *SourceSnapchatMarketingState, opts ...ResourceOption) (*SourceSnapchatMarketing, error)public static SourceSnapchatMarketing Get(string name, Input<string> id, SourceSnapchatMarketingState? state, CustomResourceOptions? opts = null)public static SourceSnapchatMarketing get(String name, Output<String> id, SourceSnapchatMarketingState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceSnapchatMarketing    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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchat Marketing 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
SourceSnapchatMarketingConfiguration, SourceSnapchatMarketingConfigurationArgs        
- ClientId string
- The Client ID of your Snapchat developer application.
- ClientSecret string
- The Client Secret of your Snapchat developer application.
- RefreshToken string
- Refresh Token to renew the expired Access Token.
- ActionReport stringTime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- AdAccount List<string>Ids 
- Ad Account IDs of the ad accounts to retrieve
- EndDate string
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- OrganizationIds List<string>
- The IDs of the organizations to retrieve
- StartDate string
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- SwipeUp stringAttribution Window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- ViewAttribution stringWindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
- ClientId string
- The Client ID of your Snapchat developer application.
- ClientSecret string
- The Client Secret of your Snapchat developer application.
- RefreshToken string
- Refresh Token to renew the expired Access Token.
- ActionReport stringTime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- AdAccount []stringIds 
- Ad Account IDs of the ad accounts to retrieve
- EndDate string
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- OrganizationIds []string
- The IDs of the organizations to retrieve
- StartDate string
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- SwipeUp stringAttribution Window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- ViewAttribution stringWindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
- clientId String
- The Client ID of your Snapchat developer application.
- clientSecret String
- The Client Secret of your Snapchat developer application.
- refreshToken String
- Refresh Token to renew the expired Access Token.
- actionReport StringTime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- adAccount List<String>Ids 
- Ad Account IDs of the ad accounts to retrieve
- endDate String
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- organizationIds List<String>
- The IDs of the organizations to retrieve
- startDate String
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- swipeUp StringAttribution Window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- viewAttribution StringWindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
- clientId string
- The Client ID of your Snapchat developer application.
- clientSecret string
- The Client Secret of your Snapchat developer application.
- refreshToken string
- Refresh Token to renew the expired Access Token.
- actionReport stringTime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- adAccount string[]Ids 
- Ad Account IDs of the ad accounts to retrieve
- endDate string
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- organizationIds string[]
- The IDs of the organizations to retrieve
- startDate string
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- swipeUp stringAttribution Window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- viewAttribution stringWindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
- client_id str
- The Client ID of your Snapchat developer application.
- client_secret str
- The Client Secret of your Snapchat developer application.
- refresh_token str
- Refresh Token to renew the expired Access Token.
- action_report_ strtime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- ad_account_ Sequence[str]ids 
- Ad Account IDs of the ad accounts to retrieve
- end_date str
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- organization_ids Sequence[str]
- The IDs of the organizations to retrieve
- start_date str
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- swipe_up_ strattribution_ window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- view_attribution_ strwindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
- clientId String
- The Client ID of your Snapchat developer application.
- clientSecret String
- The Client Secret of your Snapchat developer application.
- refreshToken String
- Refresh Token to renew the expired Access Token.
- actionReport StringTime 
- Specifies the principle for conversion reporting. Default: "conversion"; must be one of ["conversion", "impression"]
- adAccount List<String>Ids 
- Ad Account IDs of the ad accounts to retrieve
- endDate String
- Date in the format 2017-01-25. Any data after this date will not be replicated.
- organizationIds List<String>
- The IDs of the organizations to retrieve
- startDate String
- Date in the format 2022-01-01. Any data before this date will not be replicated. Default: "2022-01-01"
- swipeUp StringAttribution Window 
- Attribution window for swipe ups. Default: "28DAY"; must be one of ["1DAY", "7DAY", "28DAY"]
- viewAttribution StringWindow 
- Attribution window for views. Default: "1DAY"; must be one of ["1HOUR", "3HOUR", "6HOUR", "1DAY", "7DAY"]
Import
$ pulumi import airbyte:index/sourceSnapchatMarketing:SourceSnapchatMarketing my_airbyte_source_snapchat_marketing ""
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.