airbyte.SourceNytimes
Explore with Pulumi AI
SourceNytimes 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.SourceNytimes;
import com.pulumi.airbyte.SourceNytimesArgs;
import com.pulumi.airbyte.inputs.SourceNytimesConfigurationArgs;
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 mySourceNytimes = new SourceNytimes("mySourceNytimes", SourceNytimesArgs.builder()
            .configuration(SourceNytimesConfigurationArgs.builder()
                .api_key("...my_api_key...")
                .end_date("2022-08")
                .period(1)
                .share_type("facebook")
                .start_date("2022-08")
                .build())
            .definitionId("ee5f4d07-6d64-436e-89d7-3e6a7be8a54f")
            .secretId("...my_secret_id...")
            .workspaceId("022ba7a1-465f-4932-ba45-6444b9cf5670")
            .build());
    }
}
resources:
  mySourceNytimes:
    type: airbyte:SourceNytimes
    properties:
      configuration:
        api_key: '...my_api_key...'
        end_date: 2022-08
        period: 1
        share_type: facebook
        start_date: 2022-08
      definitionId: ee5f4d07-6d64-436e-89d7-3e6a7be8a54f
      secretId: '...my_secret_id...'
      workspaceId: 022ba7a1-465f-4932-ba45-6444b9cf5670
Create SourceNytimes Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceNytimes(name: string, args: SourceNytimesArgs, opts?: CustomResourceOptions);@overload
def SourceNytimes(resource_name: str,
                  args: SourceNytimesArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def SourceNytimes(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  configuration: Optional[SourceNytimesConfigurationArgs] = None,
                  workspace_id: Optional[str] = None,
                  definition_id: Optional[str] = None,
                  name: Optional[str] = None,
                  secret_id: Optional[str] = None)func NewSourceNytimes(ctx *Context, name string, args SourceNytimesArgs, opts ...ResourceOption) (*SourceNytimes, error)public SourceNytimes(string name, SourceNytimesArgs args, CustomResourceOptions? opts = null)
public SourceNytimes(String name, SourceNytimesArgs args)
public SourceNytimes(String name, SourceNytimesArgs args, CustomResourceOptions options)
type: airbyte:SourceNytimes
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 SourceNytimesArgs
- 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 SourceNytimesArgs
- 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 SourceNytimesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceNytimesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceNytimesArgs
- 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 sourceNytimesResource = new Airbyte.SourceNytimes("sourceNytimesResource", new()
{
    Configuration = new Airbyte.Inputs.SourceNytimesConfigurationArgs
    {
        ApiKey = "string",
        Period = 0,
        StartDate = "string",
        EndDate = "string",
        ShareType = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceNytimes(ctx, "sourceNytimesResource", &airbyte.SourceNytimesArgs{
Configuration: &.SourceNytimesConfigurationArgs{
ApiKey: pulumi.String("string"),
Period: pulumi.Float64(0),
StartDate: pulumi.String("string"),
EndDate: pulumi.String("string"),
ShareType: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceNytimesResource = new SourceNytimes("sourceNytimesResource", SourceNytimesArgs.builder()
    .configuration(SourceNytimesConfigurationArgs.builder()
        .apiKey("string")
        .period(0)
        .startDate("string")
        .endDate("string")
        .shareType("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_nytimes_resource = airbyte.SourceNytimes("sourceNytimesResource",
    configuration={
        "api_key": "string",
        "period": 0,
        "start_date": "string",
        "end_date": "string",
        "share_type": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceNytimesResource = new airbyte.SourceNytimes("sourceNytimesResource", {
    configuration: {
        apiKey: "string",
        period: 0,
        startDate: "string",
        endDate: "string",
        shareType: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceNytimes
properties:
    configuration:
        apiKey: string
        endDate: string
        period: 0
        shareType: string
        startDate: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceNytimes 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 SourceNytimes resource accepts the following input properties:
- Configuration
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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 SourceNytimes 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 SourceNytimes Resource
Get an existing SourceNytimes 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?: SourceNytimesState, opts?: CustomResourceOptions): SourceNytimes@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceNytimesConfigurationArgs] = 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) -> SourceNytimesfunc GetSourceNytimes(ctx *Context, name string, id IDInput, state *SourceNytimesState, opts ...ResourceOption) (*SourceNytimes, error)public static SourceNytimes Get(string name, Input<string> id, SourceNytimesState? state, CustomResourceOptions? opts = null)public static SourceNytimes get(String name, Output<String> id, SourceNytimesState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceNytimes    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
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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
SourceNytimes 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
SourceNytimesConfiguration, SourceNytimesConfigurationArgs      
- api_key str
- API Key
- period float
- Period of time (in days). must be one of ["1", "7", "30"]
- start_date str
- Start date to begin the article retrieval (format YYYY-MM)
- end_date str
- End date to stop the article retrieval (format YYYY-MM)
- str
- Share Type. must be "facebook"
Import
$ pulumi import airbyte:index/sourceNytimes:SourceNytimes my_airbyte_source_nytimes ""
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.