airbyte.SourceSlack
Explore with Pulumi AI
SourceSlack 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.SourceSlack;
import com.pulumi.airbyte.SourceSlackArgs;
import com.pulumi.airbyte.inputs.SourceSlackConfigurationArgs;
import com.pulumi.airbyte.inputs.SourceSlackConfigurationCredentialsArgs;
import com.pulumi.airbyte.inputs.SourceSlackConfigurationCredentialsApiTokenArgs;
import com.pulumi.airbyte.inputs.SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs;
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 mySourceSlack = new SourceSlack("mySourceSlack", SourceSlackArgs.builder()
            .configuration(SourceSlackConfigurationArgs.builder()
                .channel_filter("...")
                .credentials(SourceSlackConfigurationCredentialsArgs.builder()
                    .apiToken(SourceSlackConfigurationCredentialsApiTokenArgs.builder()
                        .apiToken("...my_api_token...")
                        .build())
                    .signInViaSlackOAuth(SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs.builder()
                        .accessToken("...my_access_token...")
                        .clientId("...my_client_id...")
                        .clientSecret("...my_client_secret...")
                        .build())
                    .build())
                .include_private_channels(false)
                .join_channels(false)
                .lookback_window(7)
                .start_date("2017-01-25T00:00:00Z")
                .build())
            .definitionId("0e40c94d-0533-49a9-8fb8-ec1935c15487")
            .secretId("...my_secret_id...")
            .workspaceId("c0473aa4-957d-44db-ac2f-386282ba46e7")
            .build());
    }
}
resources:
  mySourceSlack:
    type: airbyte:SourceSlack
    properties:
      configuration:
        channel_filter:
          - '...'
        credentials:
          apiToken:
            apiToken: '...my_api_token...'
          signInViaSlackOAuth:
            accessToken: '...my_access_token...'
            clientId: '...my_client_id...'
            clientSecret: '...my_client_secret...'
        include_private_channels: false
        join_channels: false
        lookback_window: 7
        start_date: 2017-01-25T00:00:00Z
      definitionId: 0e40c94d-0533-49a9-8fb8-ec1935c15487
      secretId: '...my_secret_id...'
      workspaceId: c0473aa4-957d-44db-ac2f-386282ba46e7
Create SourceSlack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceSlack(name: string, args: SourceSlackArgs, opts?: CustomResourceOptions);@overload
def SourceSlack(resource_name: str,
                args: SourceSlackArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def SourceSlack(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                configuration: Optional[SourceSlackConfigurationArgs] = None,
                workspace_id: Optional[str] = None,
                definition_id: Optional[str] = None,
                name: Optional[str] = None,
                secret_id: Optional[str] = None)func NewSourceSlack(ctx *Context, name string, args SourceSlackArgs, opts ...ResourceOption) (*SourceSlack, error)public SourceSlack(string name, SourceSlackArgs args, CustomResourceOptions? opts = null)
public SourceSlack(String name, SourceSlackArgs args)
public SourceSlack(String name, SourceSlackArgs args, CustomResourceOptions options)
type: airbyte:SourceSlack
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 SourceSlackArgs
- 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 SourceSlackArgs
- 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 SourceSlackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceSlackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceSlackArgs
- 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 sourceSlackResource = new Airbyte.SourceSlack("sourceSlackResource", new()
{
    Configuration = new Airbyte.Inputs.SourceSlackConfigurationArgs
    {
        StartDate = "string",
        ChannelFilters = new[]
        {
            "string",
        },
        Credentials = new Airbyte.Inputs.SourceSlackConfigurationCredentialsArgs
        {
            ApiToken = new Airbyte.Inputs.SourceSlackConfigurationCredentialsApiTokenArgs
            {
                ApiToken = "string",
            },
            SignInViaSlackOAuth = new Airbyte.Inputs.SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs
            {
                AccessToken = "string",
                ClientId = "string",
                ClientSecret = "string",
            },
        },
        IncludePrivateChannels = false,
        JoinChannels = false,
        LookbackWindow = 0,
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceSlack(ctx, "sourceSlackResource", &airbyte.SourceSlackArgs{
Configuration: &.SourceSlackConfigurationArgs{
StartDate: pulumi.String("string"),
ChannelFilters: pulumi.StringArray{
pulumi.String("string"),
},
Credentials: &.SourceSlackConfigurationCredentialsArgs{
ApiToken: &.SourceSlackConfigurationCredentialsApiTokenArgs{
ApiToken: pulumi.String("string"),
},
SignInViaSlackOAuth: &.SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs{
AccessToken: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
},
},
IncludePrivateChannels: pulumi.Bool(false),
JoinChannels: pulumi.Bool(false),
LookbackWindow: pulumi.Float64(0),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceSlackResource = new SourceSlack("sourceSlackResource", SourceSlackArgs.builder()
    .configuration(SourceSlackConfigurationArgs.builder()
        .startDate("string")
        .channelFilters("string")
        .credentials(SourceSlackConfigurationCredentialsArgs.builder()
            .apiToken(SourceSlackConfigurationCredentialsApiTokenArgs.builder()
                .apiToken("string")
                .build())
            .signInViaSlackOAuth(SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs.builder()
                .accessToken("string")
                .clientId("string")
                .clientSecret("string")
                .build())
            .build())
        .includePrivateChannels(false)
        .joinChannels(false)
        .lookbackWindow(0)
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_slack_resource = airbyte.SourceSlack("sourceSlackResource",
    configuration={
        "start_date": "string",
        "channel_filters": ["string"],
        "credentials": {
            "api_token": {
                "api_token": "string",
            },
            "sign_in_via_slack_o_auth": {
                "access_token": "string",
                "client_id": "string",
                "client_secret": "string",
            },
        },
        "include_private_channels": False,
        "join_channels": False,
        "lookback_window": 0,
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceSlackResource = new airbyte.SourceSlack("sourceSlackResource", {
    configuration: {
        startDate: "string",
        channelFilters: ["string"],
        credentials: {
            apiToken: {
                apiToken: "string",
            },
            signInViaSlackOAuth: {
                accessToken: "string",
                clientId: "string",
                clientSecret: "string",
            },
        },
        includePrivateChannels: false,
        joinChannels: false,
        lookbackWindow: 0,
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceSlack
properties:
    configuration:
        channelFilters:
            - string
        credentials:
            apiToken:
                apiToken: string
            signInViaSlackOAuth:
                accessToken: string
                clientId: string
                clientSecret: string
        includePrivateChannels: false
        joinChannels: false
        lookbackWindow: 0
        startDate: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceSlack 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 SourceSlack resource accepts the following input properties:
- Configuration
SourceSlack 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
SourceSlack 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
SourceSlack 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
SourceSlack 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
SourceSlack 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 SourceSlack 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 SourceSlack Resource
Get an existing SourceSlack 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?: SourceSlackState, opts?: CustomResourceOptions): SourceSlack@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceSlackConfigurationArgs] = 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) -> SourceSlackfunc GetSourceSlack(ctx *Context, name string, id IDInput, state *SourceSlackState, opts ...ResourceOption) (*SourceSlack, error)public static SourceSlack Get(string name, Input<string> id, SourceSlackState? state, CustomResourceOptions? opts = null)public static SourceSlack get(String name, Output<String> id, SourceSlackState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceSlack    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
SourceSlack 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
SourceSlack 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
SourceSlack 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
SourceSlack 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
SourceSlack 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
SourceSlackConfiguration, SourceSlackConfigurationArgs      
- StartDate string
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- ChannelFilters List<string>
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- Credentials
SourceSlack Configuration Credentials 
- Choose how to authenticate into Slack
- IncludePrivate boolChannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- JoinChannels bool
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- LookbackWindow double
- How far into the past to look for messages in threads, default is 0 days. Default: 0
- StartDate string
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- ChannelFilters []string
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- Credentials
SourceSlack Configuration Credentials 
- Choose how to authenticate into Slack
- IncludePrivate boolChannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- JoinChannels bool
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- LookbackWindow float64
- How far into the past to look for messages in threads, default is 0 days. Default: 0
- startDate String
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- channelFilters List<String>
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- credentials
SourceSlack Configuration Credentials 
- Choose how to authenticate into Slack
- includePrivate BooleanChannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- joinChannels Boolean
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- lookbackWindow Double
- How far into the past to look for messages in threads, default is 0 days. Default: 0
- startDate string
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- channelFilters string[]
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- credentials
SourceSlack Configuration Credentials 
- Choose how to authenticate into Slack
- includePrivate booleanChannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- joinChannels boolean
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- lookbackWindow number
- How far into the past to look for messages in threads, default is 0 days. Default: 0
- start_date str
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- channel_filters Sequence[str]
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- credentials
SourceSlack Configuration Credentials 
- Choose how to authenticate into Slack
- include_private_ boolchannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- join_channels bool
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- lookback_window float
- How far into the past to look for messages in threads, default is 0 days. Default: 0
- startDate String
- UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- channelFilters List<String>
- A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- credentials Property Map
- Choose how to authenticate into Slack
- includePrivate BooleanChannels 
- Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. Default: false
- joinChannels Boolean
- Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. Default: true
- lookbackWindow Number
- How far into the past to look for messages in threads, default is 0 days. Default: 0
SourceSlackConfigurationCredentials, SourceSlackConfigurationCredentialsArgs        
SourceSlackConfigurationCredentialsApiToken, SourceSlackConfigurationCredentialsApiTokenArgs            
- ApiToken string
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
- ApiToken string
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
- apiToken String
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
- apiToken string
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
- api_token str
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
- apiToken String
- A Slack bot token. See the \n\ndocs\n\n for instructions on how to generate it.
SourceSlackConfigurationCredentialsSignInViaSlackOAuth, SourceSlackConfigurationCredentialsSignInViaSlackOAuthArgs                  
- AccessToken string
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- ClientId string
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- ClientSecret string
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
- AccessToken string
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- ClientId string
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- ClientSecret string
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
- accessToken String
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- clientId String
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- clientSecret String
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
- accessToken string
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- clientId string
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- clientSecret string
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
- access_token str
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- client_id str
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- client_secret str
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
- accessToken String
- Slack access_token. See our \n\ndocs\n\n if you need help generating the token.
- clientId String
- Slack client_id. See our \n\ndocs\n\n if you need help finding this id.
- clientSecret String
- Slack client_secret. See our \n\ndocs\n\n if you need help finding this secret.
Import
$ pulumi import airbyte:index/sourceSlack:SourceSlack my_airbyte_source_slack ""
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.