airbyte.SourceGnews
Explore with Pulumi AI
SourceGnews 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.SourceGnews;
import com.pulumi.airbyte.SourceGnewsArgs;
import com.pulumi.airbyte.inputs.SourceGnewsConfigurationArgs;
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 mySourceGnews = new SourceGnews("mySourceGnews", SourceGnewsArgs.builder()
            .configuration(SourceGnewsConfigurationArgs.builder()
                .api_key("...my_api_key...")
                .country("gr")
                .end_date("2022-08-21 16:27:09")
                .in("description")
                .language("el")
                .nullable("content")
                .query("Microsoft Windows 10")
                .sortby("publishedAt")
                .start_date("2022-08-21 16:27:09")
                .top_headlines_query("Microsoft Windows 10")
                .top_headlines_topic("health")
                .build())
            .definitionId("c6b2adaf-5531-41d5-90fd-e24b104a9d91")
            .secretId("...my_secret_id...")
            .workspaceId("a4cd7e01-eaeb-4a47-98ed-9dadb5de4147")
            .build());
    }
}
resources:
  mySourceGnews:
    type: airbyte:SourceGnews
    properties:
      configuration:
        api_key: '...my_api_key...'
        country: gr
        end_date: 2022-08-21 16:27:09
        in:
          - description
        language: el
        nullable:
          - content
        query: Microsoft Windows 10
        sortby: publishedAt
        start_date: 2022-08-21 16:27:09
        top_headlines_query: Microsoft Windows 10
        top_headlines_topic: health
      definitionId: c6b2adaf-5531-41d5-90fd-e24b104a9d91
      secretId: '...my_secret_id...'
      workspaceId: a4cd7e01-eaeb-4a47-98ed-9dadb5de4147
Create SourceGnews Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceGnews(name: string, args: SourceGnewsArgs, opts?: CustomResourceOptions);@overload
def SourceGnews(resource_name: str,
                args: SourceGnewsArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def SourceGnews(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                configuration: Optional[SourceGnewsConfigurationArgs] = None,
                workspace_id: Optional[str] = None,
                definition_id: Optional[str] = None,
                name: Optional[str] = None,
                secret_id: Optional[str] = None)func NewSourceGnews(ctx *Context, name string, args SourceGnewsArgs, opts ...ResourceOption) (*SourceGnews, error)public SourceGnews(string name, SourceGnewsArgs args, CustomResourceOptions? opts = null)
public SourceGnews(String name, SourceGnewsArgs args)
public SourceGnews(String name, SourceGnewsArgs args, CustomResourceOptions options)
type: airbyte:SourceGnews
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 SourceGnewsArgs
- 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 SourceGnewsArgs
- 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 SourceGnewsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceGnewsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceGnewsArgs
- 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 sourceGnewsResource = new Airbyte.SourceGnews("sourceGnewsResource", new()
{
    Configuration = new Airbyte.Inputs.SourceGnewsConfigurationArgs
    {
        ApiKey = "string",
        Query = "string",
        Country = "string",
        EndDate = "string",
        Ins = new[]
        {
            "string",
        },
        Language = "string",
        Nullables = new[]
        {
            "string",
        },
        Sortby = "string",
        StartDate = "string",
        TopHeadlinesQuery = "string",
        TopHeadlinesTopic = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceGnews(ctx, "sourceGnewsResource", &airbyte.SourceGnewsArgs{
Configuration: &.SourceGnewsConfigurationArgs{
ApiKey: pulumi.String("string"),
Query: pulumi.String("string"),
Country: pulumi.String("string"),
EndDate: pulumi.String("string"),
Ins: pulumi.StringArray{
pulumi.String("string"),
},
Language: pulumi.String("string"),
Nullables: pulumi.StringArray{
pulumi.String("string"),
},
Sortby: pulumi.String("string"),
StartDate: pulumi.String("string"),
TopHeadlinesQuery: pulumi.String("string"),
TopHeadlinesTopic: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceGnewsResource = new SourceGnews("sourceGnewsResource", SourceGnewsArgs.builder()
    .configuration(SourceGnewsConfigurationArgs.builder()
        .apiKey("string")
        .query("string")
        .country("string")
        .endDate("string")
        .ins("string")
        .language("string")
        .nullables("string")
        .sortby("string")
        .startDate("string")
        .topHeadlinesQuery("string")
        .topHeadlinesTopic("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_gnews_resource = airbyte.SourceGnews("sourceGnewsResource",
    configuration={
        "api_key": "string",
        "query": "string",
        "country": "string",
        "end_date": "string",
        "ins": ["string"],
        "language": "string",
        "nullables": ["string"],
        "sortby": "string",
        "start_date": "string",
        "top_headlines_query": "string",
        "top_headlines_topic": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceGnewsResource = new airbyte.SourceGnews("sourceGnewsResource", {
    configuration: {
        apiKey: "string",
        query: "string",
        country: "string",
        endDate: "string",
        ins: ["string"],
        language: "string",
        nullables: ["string"],
        sortby: "string",
        startDate: "string",
        topHeadlinesQuery: "string",
        topHeadlinesTopic: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceGnews
properties:
    configuration:
        apiKey: string
        country: string
        endDate: string
        ins:
            - string
        language: string
        nullables:
            - string
        query: string
        sortby: string
        startDate: string
        topHeadlinesQuery: string
        topHeadlinesTopic: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceGnews 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 SourceGnews resource accepts the following input properties:
- Configuration
SourceGnews 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
SourceGnews 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
SourceGnews 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
SourceGnews 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
SourceGnews 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 SourceGnews 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 SourceGnews Resource
Get an existing SourceGnews 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?: SourceGnewsState, opts?: CustomResourceOptions): SourceGnews@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceGnewsConfigurationArgs] = 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) -> SourceGnewsfunc GetSourceGnews(ctx *Context, name string, id IDInput, state *SourceGnewsState, opts ...ResourceOption) (*SourceGnews, error)public static SourceGnews Get(string name, Input<string> id, SourceGnewsState? state, CustomResourceOptions? opts = null)public static SourceGnews get(String name, Output<String> id, SourceGnewsState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceGnews    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
SourceGnews 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
SourceGnews 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
SourceGnews 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
SourceGnews 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
SourceGnews 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
SourceGnewsConfiguration, SourceGnewsConfigurationArgs      
- ApiKey string
- API Key
- Query string
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- Country string
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- EndDate string
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- Ins List<string>
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- Language string
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- Nullables List<string>
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- Sortby string
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- StartDate string
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- TopHeadlines stringQuery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- TopHeadlines stringTopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
- ApiKey string
- API Key
- Query string
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- Country string
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- EndDate string
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- Ins []string
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- Language string
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- Nullables []string
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- Sortby string
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- StartDate string
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- TopHeadlines stringQuery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- TopHeadlines stringTopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
- apiKey String
- API Key
- query String
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- country String
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- endDate String
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- ins List<String>
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- language String
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- nullables List<String>
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- sortby String
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- startDate String
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- topHeadlines StringQuery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- topHeadlines StringTopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
- apiKey string
- API Key
- query string
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- country string
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- endDate string
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- ins string[]
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- language string
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- nullables string[]
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- sortby string
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- startDate string
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- topHeadlines stringQuery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- topHeadlines stringTopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
- api_key str
- API Key
- query str
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- country str
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- end_date str
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- ins Sequence[str]
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- language str
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- nullables Sequence[str]
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- sortby str
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- start_date str
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- top_headlines_ strquery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- top_headlines_ strtopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
- apiKey String
- API Key
- query String
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- country String
- This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. must be one of ["au", "br", "ca", "cn", "eg", "fr", "de", "gr", "hk", "in", "ie", "il", "it", "jp", "nl", "no", "pk", "pe", "ph", "pt", "ro", "ru", "sg", "es", "se", "ch", "tw", "ua", "gb", "us"]
- endDate String
- This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- ins List<String>
- This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes.
- language String
- must be one of ["ar", "zh", "nl", "en", "fr", "de", "el", "he", "hi", "it", "ja", "ml", "mr", "no", "pt", "ro", "ru", "es", "sv", "ta", "te", "uk"]
- nullables List<String>
- This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes
- sortby String
- This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first must be one of ["publishedAt", "relevance"]
 
- startDate String
- This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- topHeadlines StringQuery 
- This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword
sequence.
For example the query: "Apple iPhone" will return articles matching at
least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article
search. By default the space character acts as an AND operator, it is
possible to replace the space character
by AND to obtain the same result. For example the query: Apple Microsoft
is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b.
It is important to note that this operator has a higher precedence than
the AND operator. For example the
query: Apple OR Microsoft will return all articles matching the keyword
Apple as well as all articles matching
the keyword Microsoft- Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes. For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword iPhone
 
- topHeadlines StringTopic 
- This parameter allows you to change the category for the request. must be one of ["breaking-news", "world", "nation", "business", "technology", "entertainment", "sports", "science", "health"]
Import
$ pulumi import airbyte:index/sourceGnews:SourceGnews my_airbyte_source_gnews ""
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.