Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Replacement of SNS generated with native entity (#76)
Browse files Browse the repository at this point in the history
* starting sns

* basic sns complete

* remove generated sns

* update cargo features

* a bit of clean up and comments for docs

* corrected doc comment for sns feature

* corrected doc comment for sns feature

* add DS_Store to gitignore and remove any created

* exclude sns from go codegen
  • Loading branch information
brentlemons committed Mar 20, 2022
1 parent 50ee65f commit 7fb1fb2
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 268 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ Cargo.lock

.idea
*.iml

# Prevent MacOS ds_store files
**/.DS_Store
6 changes: 3 additions & 3 deletions aws_lambda_events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ pretty_assertions = "0.7"
# The `generated` features reference features generated by the codegen script.
[features]
default = ["generated", "static"]
static = ["alb", "apigw", "cloudwatch_events", "dynamodb"]
static = ["alb", "apigw", "cloudwatch_events", "dynamodb", "sns"]
alb = []
apigw = []
cloudwatch_events = []
dynamodb = []
sns = []

activemq = []
appsync = []
Expand Down Expand Up @@ -70,7 +71,6 @@ rabbitmq = []
s3 = []
s3_batch_job = []
ses = []
sns = []
sqs = []
streams = []
generated = ["activemq", "appsync", "autoscaling", "chime_bot", "clientvpn", "cloudwatch_logs", "code_commit", "codebuild", "codedeploy", "codepipeline_cloudwatch", "codepipeline_job", "cognito", "config", "connect", "ecr_scan", "firehose", "iot", "iot_1_click", "iot_button", "kafka", "kinesis", "kinesis_analytics", "lex", "rabbitmq", "s3", "s3_batch_job", "ses", "sns", "sqs", "streams"]
generated = ["activemq", "appsync", "autoscaling", "chime_bot", "clientvpn", "cloudwatch_logs", "code_commit", "codebuild", "codedeploy", "codepipeline_cloudwatch", "codepipeline_job", "cognito", "config", "connect", "ecr_scan", "firehose", "iot", "iot_1_click", "iot_button", "kafka", "kinesis", "kinesis_analytics", "lex", "rabbitmq", "s3", "s3_batch_job", "ses", "sqs", "streams"]
4 changes: 4 additions & 0 deletions aws_lambda_events/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ pub use super::cloudwatch_events;
/// AWS Lambda event definitions for dynamodb.
#[cfg(feature = "dynamodb")]
pub use super::dynamodb;

/// AWS Lambda event definitions for SNS.
#[cfg(feature = "sns")]
pub use super::sns;
3 changes: 0 additions & 3 deletions aws_lambda_events/src/generated/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ pub mod s3_batch_job;
/// AWS Lambda event definitions for ses.
#[cfg(feature = "ses")]
pub mod ses;
/// AWS Lambda event definitions for sns.
#[cfg(feature = "sns")]
pub mod sns;
/// AWS Lambda event definitions for sqs.
#[cfg(feature = "sqs")]
pub mod sqs;
Expand Down
262 changes: 0 additions & 262 deletions aws_lambda_events/src/generated/sns.rs

This file was deleted.

4 changes: 4 additions & 0 deletions aws_lambda_events/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ pub mod cloudwatch_events;
#[cfg(feature = "dynamodb")]
pub mod dynamodb;

/// AWS Lambda event definitions for SNS.
#[cfg(feature = "sns")]
pub mod sns;

mod custom_serde;
/// Encodings used in AWS Lambda json event values.
pub mod encodings;
Expand Down
Loading

0 comments on commit 7fb1fb2

Please sign in to comment.