airbyte.SourceAwsCloudtrail
Explore with Pulumi AI
SourceAwsCloudtrail 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.SourceAwsCloudtrail;
import com.pulumi.airbyte.SourceAwsCloudtrailArgs;
import com.pulumi.airbyte.inputs.SourceAwsCloudtrailConfigurationArgs;
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 mySourceAwscloudtrail = new SourceAwsCloudtrail("mySourceAwscloudtrail", SourceAwsCloudtrailArgs.builder()
            .configuration(SourceAwsCloudtrailConfigurationArgs.builder()
                .aws_key_id("...my_aws_key_id...")
                .aws_region_name("...my_aws_region_name...")
                .aws_secret_key("...my_aws_secret_key...")
                .lookup_attributes_filter(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .start_date("2021-01-01")
                .build())
            .definitionId("552bff18-4067-44af-bc96-8a4b1825bd55")
            .secretId("...my_secret_id...")
            .workspaceId("74a290f5-806c-40bd-8860-ace07aaedafd")
            .build());
    }
}
resources:
  mySourceAwscloudtrail:
    type: airbyte:SourceAwsCloudtrail
    properties:
      configuration:
        aws_key_id: '...my_aws_key_id...'
        aws_region_name: '...my_aws_region_name...'
        aws_secret_key: '...my_aws_secret_key...'
        lookup_attributes_filter:
          attributeKey: EventName
          attributeValue: ListInstanceAssociations
        start_date: 2021-01-01
      definitionId: 552bff18-4067-44af-bc96-8a4b1825bd55
      secretId: '...my_secret_id...'
      workspaceId: 74a290f5-806c-40bd-8860-ace07aaedafd
Create SourceAwsCloudtrail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceAwsCloudtrail(name: string, args: SourceAwsCloudtrailArgs, opts?: CustomResourceOptions);@overload
def SourceAwsCloudtrail(resource_name: str,
                        args: SourceAwsCloudtrailArgs,
                        opts: Optional[ResourceOptions] = None)
@overload
def SourceAwsCloudtrail(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        configuration: Optional[SourceAwsCloudtrailConfigurationArgs] = None,
                        workspace_id: Optional[str] = None,
                        definition_id: Optional[str] = None,
                        name: Optional[str] = None,
                        secret_id: Optional[str] = None)func NewSourceAwsCloudtrail(ctx *Context, name string, args SourceAwsCloudtrailArgs, opts ...ResourceOption) (*SourceAwsCloudtrail, error)public SourceAwsCloudtrail(string name, SourceAwsCloudtrailArgs args, CustomResourceOptions? opts = null)
public SourceAwsCloudtrail(String name, SourceAwsCloudtrailArgs args)
public SourceAwsCloudtrail(String name, SourceAwsCloudtrailArgs args, CustomResourceOptions options)
type: airbyte:SourceAwsCloudtrail
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 SourceAwsCloudtrailArgs
- 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 SourceAwsCloudtrailArgs
- 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 SourceAwsCloudtrailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceAwsCloudtrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceAwsCloudtrailArgs
- 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 sourceAwsCloudtrailResource = new Airbyte.SourceAwsCloudtrail("sourceAwsCloudtrailResource", new()
{
    Configuration = new Airbyte.Inputs.SourceAwsCloudtrailConfigurationArgs
    {
        AwsKeyId = "string",
        AwsSecretKey = "string",
        AwsRegionName = "string",
        LookupAttributesFilter = new Airbyte.Inputs.SourceAwsCloudtrailConfigurationLookupAttributesFilterArgs
        {
            AttributeKey = "string",
            AttributeValue = "string",
        },
        StartDate = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceAwsCloudtrail(ctx, "sourceAwsCloudtrailResource", &airbyte.SourceAwsCloudtrailArgs{
Configuration: &.SourceAwsCloudtrailConfigurationArgs{
AwsKeyId: pulumi.String("string"),
AwsSecretKey: pulumi.String("string"),
AwsRegionName: pulumi.String("string"),
LookupAttributesFilter: &.SourceAwsCloudtrailConfigurationLookupAttributesFilterArgs{
AttributeKey: pulumi.String("string"),
AttributeValue: pulumi.String("string"),
},
StartDate: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceAwsCloudtrailResource = new SourceAwsCloudtrail("sourceAwsCloudtrailResource", SourceAwsCloudtrailArgs.builder()
    .configuration(SourceAwsCloudtrailConfigurationArgs.builder()
        .awsKeyId("string")
        .awsSecretKey("string")
        .awsRegionName("string")
        .lookupAttributesFilter(SourceAwsCloudtrailConfigurationLookupAttributesFilterArgs.builder()
            .attributeKey("string")
            .attributeValue("string")
            .build())
        .startDate("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_aws_cloudtrail_resource = airbyte.SourceAwsCloudtrail("sourceAwsCloudtrailResource",
    configuration={
        "aws_key_id": "string",
        "aws_secret_key": "string",
        "aws_region_name": "string",
        "lookup_attributes_filter": {
            "attribute_key": "string",
            "attribute_value": "string",
        },
        "start_date": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceAwsCloudtrailResource = new airbyte.SourceAwsCloudtrail("sourceAwsCloudtrailResource", {
    configuration: {
        awsKeyId: "string",
        awsSecretKey: "string",
        awsRegionName: "string",
        lookupAttributesFilter: {
            attributeKey: "string",
            attributeValue: "string",
        },
        startDate: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceAwsCloudtrail
properties:
    configuration:
        awsKeyId: string
        awsRegionName: string
        awsSecretKey: string
        lookupAttributesFilter:
            attributeKey: string
            attributeValue: string
        startDate: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceAwsCloudtrail 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 SourceAwsCloudtrail resource accepts the following input properties:
- Configuration
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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 SourceAwsCloudtrail 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 SourceAwsCloudtrail Resource
Get an existing SourceAwsCloudtrail 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?: SourceAwsCloudtrailState, opts?: CustomResourceOptions): SourceAwsCloudtrail@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceAwsCloudtrailConfigurationArgs] = 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) -> SourceAwsCloudtrailfunc GetSourceAwsCloudtrail(ctx *Context, name string, id IDInput, state *SourceAwsCloudtrailState, opts ...ResourceOption) (*SourceAwsCloudtrail, error)public static SourceAwsCloudtrail Get(string name, Input<string> id, SourceAwsCloudtrailState? state, CustomResourceOptions? opts = null)public static SourceAwsCloudtrail get(String name, Output<String> id, SourceAwsCloudtrailState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceAwsCloudtrail    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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAws Cloudtrail 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
SourceAwsCloudtrailConfiguration, SourceAwsCloudtrailConfigurationArgs        
- AwsKey stringId 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- AwsSecret stringKey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- AwsRegion stringName 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- LookupAttributes SourceFilter Aws Cloudtrail Configuration Lookup Attributes Filter 
- StartDate string
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- AwsKey stringId 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- AwsSecret stringKey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- AwsRegion stringName 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- LookupAttributes SourceFilter Aws Cloudtrail Configuration Lookup Attributes Filter 
- StartDate string
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- awsKey StringId 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsSecret StringKey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsRegion StringName 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- lookupAttributes SourceFilter Aws Cloudtrail Configuration Lookup Attributes Filter 
- startDate String
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- awsKey stringId 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsSecret stringKey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsRegion stringName 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- lookupAttributes SourceFilter Aws Cloudtrail Configuration Lookup Attributes Filter 
- startDate string
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- aws_key_ strid 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- aws_secret_ strkey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- aws_region_ strname 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- lookup_attributes_ Sourcefilter Aws Cloudtrail Configuration Lookup Attributes Filter 
- start_date str
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- awsKey StringId 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsSecret StringKey 
- AWS CloudTrail Access Key ID. See the \n\ndocs\n\n for more information on how to obtain this key.
- awsRegion StringName 
- The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"
- lookupAttributes Property MapFilter 
- startDate String
- The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
SourceAwsCloudtrailConfigurationLookupAttributesFilter, SourceAwsCloudtrailConfigurationLookupAttributesFilterArgs              
- AttributeKey string
- Default: "EventName"
- AttributeValue string
- Default: "ListInstanceAssociations"
- AttributeKey string
- Default: "EventName"
- AttributeValue string
- Default: "ListInstanceAssociations"
- attributeKey String
- Default: "EventName"
- attributeValue String
- Default: "ListInstanceAssociations"
- attributeKey string
- Default: "EventName"
- attributeValue string
- Default: "ListInstanceAssociations"
- attribute_key str
- Default: "EventName"
- attribute_value str
- Default: "ListInstanceAssociations"
- attributeKey String
- Default: "EventName"
- attributeValue String
- Default: "ListInstanceAssociations"
Import
$ pulumi import airbyte:index/sourceAwsCloudtrail:SourceAwsCloudtrail my_airbyte_source_aws_cloudtrail ""
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.