Saravanan666/pypi-org huggingface dataset:
Package: aws-solutions-konstruk.aws-lambda-s3
aws-lambda-s3 module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-lambda-s3/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_lambda_s3{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-lambda-s3This AWS Solutions Konstruk implements an AWS Lambda function connected to an Amazon S3 bucket.Here is a minimal deployable pattern definition:const{LambdaToS3}=require('@aws-solutions-konstruk/aws-lambda-s3');newLambdaToS3(stack,'LambdaToS3Pattern',{deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_10_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}});Initializernew LambdaToS3(scope: Construct, id: string, props: LambdaToS3Props);ParametersscopeConstructidstringpropsLambdaToS3PropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda function.existingLambdaObj?lambda.FunctionAn optional, existing Lambda function.lambdaFunctionProps?lambda.FunctionPropsOptional user-provided props to override the default props for the Lambda function.deployBucket?booleanWhether to create a S3 Bucket or use an existing S3 BucketexistingBucketObj?s3.BucketExisting instance of S3 Bucket objectbucketProps?s3.BucketPropsOptional user provided props to override the default props for S3 BucketbucketPermissions?string[]Optional bucket permissions to grant to the Lambda function. One or more of the following may be specified:Delete,Put,Read,ReadWrite,Write.|lambdaFunction()|lambda.Function|Returns an instance of the Lambda function created by the pattern.|
|s3Bucket()|s3.Bucket|Returns an instance of the S3 bucket created by the pattern.|Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-lambda-sns
aws-lambda-sns module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-lambda-sns/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_lambda_sns{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-lambda-snsThis AWS Solutions Konstruk implements an AWS Lambda function connected to an Amazon SNS topic.Here is a minimal deployable pattern definition:const{LambdaToSns}=require('@aws-solutions-konstruk/aws-lambda-sns');newLambdaToSns(stack,'LambdaToSnsPattern',{deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_10_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}});Initializernew LambdaToSns(scope: Construct, id: string, props: LambdaToSnsProps);ParametersscopeConstructidstringpropsLambdaToSnsPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda function.existingLambdaObj?lambda.FunctionAn optional, existing Lambda function.lambdaFunctionProps?lambda.FunctionPropsOptional user-provided props to override the default props for the Lambda function.topicProps?sns.TopicPropsOptional user provided properties to override the default properties for the SNS topic.enableEncryption?booleanUse a KMS Key, either managed by this CDK app, or imported. If importing an encryption key, it must be specified in the encryptionKey property for this construct.encryptionKey?kms.KeyAn optional, imported encryption key to encrypt the SNS topic with.Pattern PropertiesNameTypeDescriptionlambdaFunction()lambda.FunctionReturns an instance of the Lambda function created by the pattern.snsTopic()sns.TopicReturns an instance of the SNS topic created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-s3-lambda
aws-s3-lambda module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-s3-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_s3_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-s3-lambdaThis AWS Solutions Konstruk implements an Amazon S3 bucket connected to an AWS Lambda function.Here is a minimal deployable pattern definition:const{S3ToLambdaProps,S3ToLambda}=require('@aws-solutions-konstruk/aws-s3-lambda');conststack=newStack(app,'test-s3-lambda-stack');constprops:S3ToLambdaProps={deployLambda:true,lambdaFunctionProps:{code:lambda.Code.asset(`${__dirname}/lambda`),runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler'},};newS3ToLambda(stack,'test-s3-lambda',props);Initializernew S3ToLambda(scope: Construct, id: string, props: S3ToLambdaProps);ParametersscopeConstructidstringpropsS3ToLambdaPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda function. If set to false, you must provide an existing function for theexistingLambdaObjproperty.existingLambdaObj?lambda.FunctionAn optional, existing Lambda function. This property is required ifdeployLambdais set to false.lambdaFunctionProps?lambda.FunctionPropsOptional user-provided props to override the default props for the Lambda function. This property is only required ifdeployLambdais set to true.deployBucket?booleanWhether to create a S3 Bucket or use an existing S3 BucketexistingBucketObj?s3.BucketExisting instance of S3 Bucket objectbucketProps?s3.BucketPropsOptional user provided props to override the default props for S3 Buckets3EventSourceProps?S3EventSourcePropsOptional user provided props to override the default props for S3EventSourcePropsPattern PropertiesNameTypeDescriptionlambdaFunction()lambda.FunctionReturns an instance of the lambda.Function created by the constructs3Bucket()s3.BucketReturns an instance of the s3.Bucket created by the constructArchitecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-sns-lambda
aws-sns-lambda module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-sns-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_sns_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-sns-lambdaThis AWS Solutions Konstruk implements an Amazon SNS connected to an AWS Lambda function.Here is a minimal deployable pattern definition:const{SnsToLambdaProps,SnsToLambda}=require('@aws-solutions-konstruk/aws-sns-lambda');conststack=newStack(app,'test-sns-lambda');// Definitionsconstprops:SnsToLambdaProps={deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}};newSnsToLambda(stack,'test-sns-lambda',props);Initializernew SnsToLambda(scope: Construct, id: string, props: SnsToLambdaProps);ParametersscopeConstructidstringpropsS3ToLambdaPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda function. If set to false, you must provide an existing function for theexistingLambdaObjproperty.existingLambdaObj?lambda.FunctionAn optional, existing Lambda function. This property is required ifdeployLambdais set to false.lambdaFunctionProps?lambda.FunctionPropsOptional user-provided props to override the default props for the lambda functiontopicProps?sns.TopicPropsOptional user provided properties to override the default properties for the SNS topic.enableEncryption?booleanUse a KMS Key, either managed by this CDK app, or imported. If importing an encryption key, it must be specified in the encryptionKey property for this construct.encryptionKey?kms.KeyAn optional, imported encryption key to encrypt the SNS topic with.Pattern PropertiesNameTypeDescriptionlambdaFunction()lambda.FunctionReturns an instance of the Lambda function created by the pattern.snsTopic()sns.TopicReturns an instance of the SNS topic created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-sqs-lambda
aws-sqs-lambda module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-sqs-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_sns_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-sns-lambdaThis AWS Solutions Konstruk implements an Amazon SQS queue connected to an AWS Lambda function.Here is a minimal deployable pattern definition:const{SqsToLambda}=require('@aws-solutions-konstruk/aws-sqs-lambda');newSqsToLambda(stack,'SqsToLambdaPattern',{deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_10_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}});Initializernew SqsToLambda(scope: Construct, id: string, props: SqsToLambdaProps);ParametersscopeConstructidstringpropsSqsToLambdaPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda function.existingLambdaObj?lambda.FunctionAn optional, existing Lambda function.lambdaFunctionProps?lambda.FunctionPropsOptional user-provided props to override the default props for the Lambda function.queueProps?sqs.QueuePropsOptional user-provided props to override the default props for the SQS queue.encryptionKeyProps?kms.KeyPropsOptional user-provided props to override the default props for the KMS encryption key.deployDeadLetterQueue?booleanWhether to create a secondary queue to be used as a dead letter queue. Defaults to true.maxReceiveCount?numberThe number of times a message can be unsuccesfully dequeued before being moved to the dead letter queue. Defaults to 15.Pattern PropertiesNameTypeDescriptionlambdaFunction()lambda.FunctionReturns an instance of the Lambda function created by the pattern.sqsQueue()sqs.QueueReturns an instance of the SQS queue created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.core
core module---This is adeveloper preview(public beta) module.All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/core/The core library includes the basic building blocks of the AWS Solutions Konstruk Library. It defines the core classes that are used in the rest of the AWS Solutions Konstruk Library.Default Properties for AWS CDK ConstructsCore library sets the default properties for the AWS CDK Constructs used by the AWS Solutions Konstruk Library constructs.For example, the following is the snippet of default properties for S3 Bucket construct created by AWS Solutions Konstruk construct. By default, it will turn on the server-side encryption, bucket versioning, block all public access and setup the S3 access logging.{
  encryption: s3.BucketEncryption.S3_MANAGED,
  versioned: true,
  blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
  removalPolicy: RemovalPolicy.RETAIN,
  serverAccessLogsBucket: loggingBucket
}Override the default propertiesThe default properties set by the Core library can be overriden by user provided properties. For example, the user can override the Amazon S3 Block Public Access property to meet specific requirements.const stack = new cdk.Stack();

  const props: CloudFrontToS3Props = {
    deployBucket: true,
    bucketProps: {
      blockPublicAccess: {
        blockPublicAcls: false,
        blockPublicPolicy: true,
        ignorePublicAcls: false,
        restrictPublicBuckets: true
      }
    }
  };

  new CloudFrontToS3(stack, 'test-cloudfront-s3', props);

  expect(stack).toHaveResource("AWS::S3::Bucket", {
    PublicAccessBlockConfiguration: {
      BlockPublicAcls: false,
      BlockPublicPolicy: true,
      IgnorePublicAcls: false,
      RestrictPublicBuckets: true
    },
  });
Package: aws-spot-fleet-helper
AWS Spot Fleet HelperPython library to help launching a fleet of Spot instances within AWS infrastructureFunctionality is also available via CLI:$ spot_fleet_config.py --helpusage: spot_fleet_config.py [-h] -bid-value BID_VALUE -ssh-key-nameSSH_KEY_NAME -ami-id AMI_ID -iam-role IAM_ROLE-instance-type INSTANCE_TYPE [INSTANCE_TYPE ...]-security-group SECURITY_GROUP[SECURITY_GROUP ...] -subnet-id SUBNET_ID[SUBNET_ID ...][--assign-public-ip ASSIGN_PUBLIC_IP][--fleet-role FLEET_ROLE] [--user-data USER_DATA]account-idTool to launch a fleet of Spot instances within AWS infrastructurepositional arguments:account-id            AWS account idoptional arguments:-h, --help            show this help message and exit-bid-value BID_VALUE  Maximum bid value per VCPU in USD-ssh-key-name SSH_KEY_NAMESSH key name to be used-ami-id AMI_ID        Amazon Machine Image id to deploy-iam-role IAM_ROLE    Instance IAM role-instance-type INSTANCE_TYPE [INSTANCE_TYPE ...]Instance types to deploy (ex: c3.4xlarge, m3.medium)-security-group SECURITY_GROUP [SECURITY_GROUP ...]Security Group ids to deploy-subnet-id SUBNET_ID [SUBNET_ID ...]Subnet ids to deploy--assign-public-ip ASSIGN_PUBLIC_IPAssign public ip to launched instances--fleet-role FLEET_ROLEIAM role used to deploy assets (default:aws_spot_fleet_helper-ec2-spot-fleet-role)--user-data USER_DATAUser data to be included in instance launchconfiguration. File name or "-" for reading from stdin
Package: aws-sqs-alert
aws-sqs-alert===========Alerting mechanism for AWS SQS QueuesMultiple handlers for targeting different messages.Design for performing actions based on AutoScale messages sent to an SNS queue that then forward to an SQS queue.Can also be used to consume CloudWatch Alerts, delete Chef Nodes/Clients on terminate and update statsD metrics.# Stable Version```bashpip install aws-sqs-alert```# Development Version```bashpip install git+git://github.com/Jumpshot/aws-sqs-alert.git#egg=aws-sqs-alert```# PyPihttps://pypi.python.org/pypi/aws-sqs-alert/-------------------------------------------------------------# Sample Configuration```json{"region" : "us-east-1","sleep" : 120,"delete" : false,"queue" : "queuename","log" : "/var/log/autoscale-alert.log","handler_location" : "","log_level" : "INFO","num_messages" : 10,"active_handlers" : ["chef_handler","graphite_handler"],"handler_config" : {"chef_handler" : {},"graphite_handler" : {"statsd_host" : "statsd.domain.ext"}}}```
Package: aws-sqs-batch-sender
AWS SQS Batch Sender for boto3This is the AWS SQS batch sender offered to boto3 aspull request #2590. As long as the code has not been merged the batch sender can be added as a dependency through this library.Development PrerequisitesGNU makedocker-composepython >= 3.6LicenseCopyright (c) 2021 byCornelius Buschka.MIT
Package: aws-sqs-consumer
Python AWS SQS ConsumerWrite Amazon Simple Queue Service (SQS) consumers in Python with simplified interface. Define your logic to process an SQS message. After you're done processing, messages are deleted from the queue.Checkout the full documentation -https://aws-sqs-consumer-python.readthedocs.io/en/latest/Installationpip install aws-sqs-consumerSimple Usagefromaws_sqs_consumerimportConsumer,MessageclassSimpleConsumer(Consumer):defhandle_message(self,message:Message):# Write your logic to handle a single `message`.print("Received message: ",message.Body)consumer=SimpleConsumer(queue_url="https://sqs.eu-west-1.amazonaws.com/12345678901/test_queue",polling_wait_time_ms=5)consumer.start()ContributingCheckout the Contribution guidelines -CONTRIBUTING.md
Package: aws-ssabuilders.aws-bootstrap-kit
Deprecation NoticeCurrent package is deprecated and will not be maintained anymore. The implementation has been moved to leverage the newAWS Landing Zone Accelerator solution(github).AWS Bootstrap Kit OverviewThis is a strongly opinionated CDK set of constructs built for companies looking to follow AWS best practices on Day 1 while setting their development and deployment environment on AWS.Let's start small but with potential for future growth without adding tech debt.Getting startedCheck ourexamples repoConstructsAs of today we expose only one global package which expose a set of stacks and constructs to help you get started properly on AWS.Usageinstallnpm install aws-bootstrap-kitCheck theExamplesandAPI Docfor more detailsContributingCheckCONTRIBUTING.md)
Package: aws-ssh
# AWS-SSH[![Build Status](https://travis-ci.org/arusahni/aws-ssh.svg?branch=master)](https://travis-ci.org/arusahni/aws-ssh)
[![Coverage Status](https://coveralls.io/repos/github/arusahni/aws-ssh/badge.svg?branch=master)](https://coveralls.io/github/arusahni/aws-ssh?branch=master)SSH into your project-specific AWS EC2 instances by name, without having to
remember IP addresses & private keys, or a curating a SSH config.Turn this:ssh -i ~/.ssh/project-key.pem ubuntu@198.51.100.13Into this:aws-ssh compute## Getting Started### PrerequisitesAWS-SSH requires Python 2.7 or greater on a POSIX system. You will also need to
have [the AWS CLI](https://aws.amazon.com/cli/) installed and configured.### InstallingPip is the recommended method:`console $ pip installaws-ssh`I recommend installing this into a virtualenv, and then symlinking the binaries
to your PATH.  For example:`console $ mkvirtualenv-p$(which python3)aws-ssh# Python 3 recommended $ pip installaws-ssh# Assuming ~/bin/ is in your$PATH...$ ln-s~/.virtualenvs/aws-ssh/bin/{aws-ssh,awssh,ssh-ec2,aws-ssh-cli}~/bin/ $ deactivate `You should now be able to use AWS-SSH outside of your virtualenv!### UsageOnce installed, you need to create a project.  Projects are collections of EC2
instances that share a common set of parameters.  For example, I may be working
on thesquanchproject, with the following instances in my AWS account:squanch-compute - 198.51.100.13squanch-web - 198.51.100.14squanch-data - 198.51.100.15Assuming I keep mysquanch-related code in~/code/squanch, I will first
need to initialize an AWS-SSH project within that directory:`console $ cd ~/code/squanch $aws-ssh--initPlease provide the full path ot the directory containing all private keys:~/.ssh/Please provide a name for this project: squanch Please provide the AWS profile to use: default Please provide the name of the private key used for authentication (including extension): squanch.pem Please provide the prefix for EC2 names: squanch- Please provide the root directory for the project: ~/code/squanch `This will create an.awssshconfigfile in the project root directory.  You
can manage it under version control to get the team on the same page :-)Now that AWS-SSH has been configured, time to connect to an instance!`console $ cd ~/code/squanch $aws-sshweb # Successful SSH connection to 198.51.100.14 `Boom.## NotesAWS-SSH attempts to guess the username for an instance by testing various
usernames.  Right now, the sequence of user names is fixed (and based off
common AMI usernames).  In a future release, this will be configurable.If your access is dependent on custom routing (e.g., behind a lazy VPN), you
may need to abort the connection attempt (via^C) and manually add a route
for the instance.## ContributingContributions welcome! Be sure to use the development package, available under thedevextra.`console $ git clonegit@github.com:arusahni/aws-ssh$ cdaws-ssh$ pip install-e.[dev] `
Package: aws-ssh-config
Autocomplete SSH hosts for AWSSetup autocompletionTo get it working you need to installbash-completionandboto3python library.On MacOS X run:$ brew install bash-completion
$ pip install boto3 awscli
$ aws configureEnter your credentials to get access to the AWS API.Or you can useenvironment variables.Create symlink to.ssh_autocompletionfile in your home folder:$ ln -sf  $(pwd)/.bash_autocompletion ~/Import.bash_autocompletionin your~/.bashrc:$ echo 'source ~/.bash_autocompletion' >> ~/.bashrc
$ . ~/.bash.rcInstallingThe easiest way to install aws_ssh_config is to use pip:$ pip install aws_ssh_configor from sources:$ git clone https://github.com/DmitriyLyalyuev/aws_ssh_config.git
$ cd aws_ssh_config
$ python3 setup.py installGenerating/updating ssh configCreate for sshconfig.dfolder:$ mkdir -p ~/.ssh/config.dTo generate or update ssh config for AWS hosts run:aws_ssh_config > ~/.ssh/config.d/awsUsageTo test autocompletion enter in terminal:$ ssh host_[TAB]