Saravanan666/pypi-org huggingface dataset:
Package: aws-socks
aws-socksMost AWS tasks are solved problems. Stop reinventing the wheel.AboutCurrent Version: 0.2.5socksis a Python library designed to abstract common AWS tasks as one liners. It is opinionated in the pursuit to provide the most performant implementation that can be leveraged generally, but also attempts to offer reasonable levels of customization to the developer by supporting most boto3 functionality.This package attempts to provide performant abstractions of the most common AWS tasks for the most common AWS services, so you can spend less time finding the best way to get that object from S3 and more time on what you actually want to do with that object (as an example).This package is not comprehensive across all (or even most) AWS services at this time, but I hope to grow this overtime so a majority of the AWS tasks you find yourself re-solving or copying from one repo to the next can be implemented here in the most efficient way.Getting StartedPlease note socks has not yet hit the 1.0 release so breaking API changes may occur. I'll try to limit those as possible and document them when they happen, but if you'd like to use socks it might be a good idea to lock your version in your requirements.txt file.If you'd like to install the library locally or without code warp/spawn you can use the following install command:pip install aws-socksTo upgrade an existing install use:pip install --upgrade aws-socksOnce installed useimport socksto start using it.Prerequisites {docsify-ignore}The only external dependency for this library is boto3 which is packaged within the library.This package expects Python version 3.6 and up. There are no plans to support previous versions of Python.Contributors@jones-chris- Maintainer@devenjarvis- Maintainer@artkinghur- SSM get_parameter exception handling@arief-akbarr- Scan Dynamo Operation, Invoke Lambda Function@ds0440- Support of boto3 kwargs
Package: aws-solutions-constructs.core
core 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.Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/The core library includes the basic building blocks of the AWS Solutions Constructs Library. It defines the core classes that are used in the rest of the AWS Solutions Constructs Library.Default Properties for AWS CDK ConstructsCore library sets the default properties for the AWS CDK Constructs used by the AWS Solutions Constructs Library constructs.For example, the following is the snippet of default properties for S3 Bucket construct created by AWS Solutions Constructs. 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 overridden 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 = {
    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
    },
  });Property override warningsWhen a default property from the Core library is overridden by a user-provided property, Constructs will emit one or more warning messages to the console highlighting the change(s). These messages are intended to provide situational awareness to the user and prevent unintentional overrides that could create security risks. These messages will appear whenever deployment/build-related commands are executed, includingcdk deploy,cdk synth,npm test, etc.Example message:AWS_CONSTRUCTS_WARNING: An override has been provided for the property: BillingMode. Default value: 'PAY_PER_REQUEST'. You provided: 'PROVISIONED'.Toggling override warningsOverride warning messages are enabled by default, but can be explicitly turned on/off using theoverrideWarningsEnabledshell variable.To explicitly turn off override warnings, runexport overrideWarningsEnabled=false.To explicitly turn on override warnings, runexport overrideWarningsEnabled=true.To revert to the default, rununset overrideWarningsEnabled.
Package: aws-solutions-constructs.resources
resources 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.Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/The resources library contains reusable resources that can be leveraged from solutions constructs. These resources are deployable units with their own sets of integration tests (to contrast them with the solutions constructscorelibrary).The first resource being published is thetemplate-writer, which does automatic text transformation/substiution, implemented as a custom resource, and run as part of a CloudFormation stack Create/Update/Delete lifecycle. Some use-cases for using thetemplate-writerresource can be seen in theaws-openapigateway-lambdaSolutions Construct, where it transforms an incoming OpenAPI Definition (residing locally or in S3) by auto-populating theurifields of thex-amazon-apigateway-integrationintegrations with the resolved value of the backing lambda functions.
Package: aws-solutions-konstruk.aws-apigateway-dynamodb
aws-apigateway-dynamodb 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-apigateway-dynamodb/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_apigateway_dynamodb{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-apigateway-dynamodbOverviewThis AWS Solutions Konstruk implements an Amazon API Gateway REST API connected to Amazon DynamoDB table.Here is a minimal deployable pattern definition:import{ApiGatewayToDynamoDBProps,ApiGatewayToDynamoDB}from"@aws-solutions-konstruk/aws-apigateway-dynamodb";constprops:ApiGatewayToDynamoDBProps={};newApiGatewayToDynamoDB(stack,'test-api-gateway-dynamodb-default',props);Initializernew ApiGatewayToDynamoDB(scope: Construct, id: string, props: ApiGatewayToDynamoDBProps);ParametersscopeConstructidstringpropsApiGatewayToDynamoDBPropsPattern Construct PropsNameTypeDescriptiondynamoTablePropsdynamodb.TablePropsOptional user provided props to override the default props for DynamoDB TableapiGatewayProps?api.RestApiPropsOptional user-provided props to override the default props for the API Gateway.allowCreateOperationbooleanWhether to deploy API Gateway Method for Create operation on Dynamodb DB table.createRequestTemplatestringAPI Gateway Request template for Create method, required if allowCreateOperation set to trueallowReadOperationbooleanWhether to deploy API Gateway Method for Read operation on Dynamodb DB table.allowUpdateOperationbooleanWhether to deploy API Gateway Method for Update operation on Dynamodb DB table.updateRequestTemplatestringAPI Gateway Request template for Update method, required if allowUpdateOperation set to trueallowDeleteOperationbooleanWhether to deploy API Gateway Method for Delete operation on Dynamodb DB table.Pattern PropertiesNameTypeDescriptionrestApi()api.RestApiReturns an instance of the api.RestApi created by the construct.dynamoTable()dynamodb.TableReturns an instance of dynamodb.Table created by the construct.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-apigateway-lambda
aws-apigateway-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-apigateway-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_apigateway_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-apigateway-lambdaOverviewThis AWS Solutions Konstruk implements an Amazon API Gateway REST API connected to an AWS Lambda function pattern.Here is a minimal deployable pattern definition:const{ApiGatewayToLambda}=require('@aws-solutions-konstruk/aws-apigateway-lambda');newApiGatewayToLambda(stack,'ApiGatewayToLambdaPattern',{deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_10_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}});Initializernew ApiGatewayToLambda(scope: Construct, id: string, props: ApiGatewayToLambdaProps);ParametersscopeConstructidstringpropsApiGatewayToLambdaPropsPattern 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.apiGatewayProps?api.LambdaRestApiPropsOptional user-provided props to override the default props for the API.Pattern PropertiesNameTypeDescriptionlambdaFunction()lambda.FunctionReturns an instance of the Lambda function created by the pattern.restApi()api.LambdaRestApiReturns an instance of the API Gateway REST API created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-apigateway-sqs
aws-apigateway-sqs 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-apigateway-sqs/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_apigateway_sqs{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-apigateway-sqsOverviewThis AWS Solutions Konstruk implements an Amazon API Gateway connected to an Amazon SQS queue pattern.Here is a minimal deployable pattern definition:const{ApiGatewayToSqs}=require('@aws-solutions-konstruk/aws-apigateway-sqs');newApiGatewayToSqs(stack,'ApiGatewayToSqsPattern',{apiGatewayProps:{},queueProps:{},encryptionKeyProps:{},deployDeadLetterQueue?:true,maxReceiveCount?:3});Initializernew ApiGatewayToSqs(scope: Construct, id: string, props: ApiGatewayToSqsProps);ParametersscopeConstructidstringpropsApiGatewayToSqsPropsPattern Construct PropsNameTypeDescriptionapiGatewayProps?api.RestApiPropsOptional user-provided props to override the default props for the API Gateway.queueProps?sqs.QueuePropsOptional user-provided props to override the default props for the queue.encryptionKeyProps?kms.KeyPropsOptional user-provided props to override the default props for the encryption key.deployDeadLetterQueuebooleanWhether to deploy a secondary queue to be used as a dead letter queue.maxReceiveCountnumberThe number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue.Pattern PropertiesNameTypeDescriptionapi()api.RestApiReturns an instance of the API Gateway REST API created by the pattern.sqsQueue()sqs.QueueReturns an instance of the SQS queue created by the pattern.Sample API UsageMethodRequest PathRequest BodyQueue ActionDescriptionGET/sqs::ReceiveMessageRetrieves a message from the queue.POST/{ "data": "Hello World!" }sqs::SendMessageDelivers a message to the queue.DELETE/message?receiptHandle=[value]sqs::DeleteMessageDeletes a specified message from the queueArchitecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-cloudfront-apigateway
aws-cloudfront-apigateway 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-cloudfront-apigateway/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_cloudfront_apigateway{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-cloudfront-apigatewayThis AWS Solutions Konstruk implements an AWS Cloudfront fronting an Amazon API Gateway REST API.Here is a minimal deployable pattern definition:const{defaults}=require('@aws-solutions-konstruk/core');const{CloudFrontToApiGateway}=require('@aws-solutions-konstruk/aws-cloudfront-apigateway');conststack=newStack();constlambdaProps:lambda.FunctionProps={code:lambda.Code.asset(`${__dirname}/lambda`),runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler'};constfunc=defaults.deployLambdaFunction(stack,lambdaProps);const_api=defaults.RegionalApiGateway(stack,func);newCloudFrontToApiGateway(stack,'test-cloudfront-apigateway',{existingApiGatewayObj:_api});Initializernew CloudFrontToApiGateway(scope: Construct, id: string, props: CloudFrontToApiGatewayProps);ParametersscopeConstructidstringpropsCloudFrontToApiGatewayPropsPattern Construct PropsNameTypeDescriptionexistingApiGatewayObjapi.RestApiThe regional API Gateway that will be fronted with the CloudFrontcloudFrontDistributionProps?[`cloudfront.CloudFrontWebDistributionPropsany`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cloudfront.CloudFrontWebDistributionProps.html)insertHttpSecurityHeaders?booleanOptional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all resonses from cloudfrontPattern PropertiesNameTypeDescriptioncloudFrontWebDistribution()cloudfront.CloudFrontWebDistributionReturns an instance of cloudfront.CloudFrontWebDistribution created by the constructrestApi()api.RestApiReturns an instance of the API Gateway REST API created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-cloudfront-apigateway-lambda
aws-cloudfront-apigateway-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-cloudfront-apigateway-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_cloudfront_apigateway_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-cloudfront-apigateway-lambdaThis AWS Solutions Konstruk implements an AWS Cloudfront fronting an Amazon API Gateway Lambda backed REST API.Here is a minimal deployable pattern definition:import*asdefaultsfrom'@aws-solutions-konstruk/core';import{CloudFrontToApiGatewayToLambda}from'@aws-solutions-konstruk/aws-cloudfront-apigateway-lambda';conststack=newStack();constlambdaProps:lambda.FunctionProps={code:lambda.Code.asset(`${__dirname}/lambda`),runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler'};newCloudFrontToApiGatewayToLambda(stack,'test-cloudfront-apigateway-lambda',{lambdaFunctionProps:lambdaProps,deployLambda:true});Initializernew CloudFrontToApiGatewayToLambda(scope: Construct, id: string, props: CloudFrontToApiGatewayToLambdaProps);ParametersscopeConstructidstringpropsCloudFrontToApiGatewayToLambdaPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda functionexistingLambdaObj?lambda.FunctionExisting instance of Lambda Function objectlambdaFunctionProps?lambda.FunctionPropsOptional user provided props to override the default props for Lambda functionapiGatewayProps?api.LambdaRestApiPropsOptional user provided props to override the default props for API GatewaycloudFrontDistributionProps?cloudfront.CloudFrontWebDistributionPropsOptional user provided props to override the default props for Cloudfront DistributioninsertHttpSecurityHeaders?booleanOptional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all resonses from cloudfrontPattern PropertiesNameTypeDescriptioncloudFrontWebDistribution()cloudfront.CloudFrontWebDistributionReturns an instance of cloudfront.CloudFrontWebDistribution created by the constructlambdaFunction()lambda.FunctionReturns an instance of the Lambda function created by the pattern.restApi()api.RestApiReturns an instance of the API Gateway REST API created by the pattern.Architecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-cloudfront-s3
aws-cloudfront-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-cloudfront-s3/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_cloudfront_s3{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-cloudfront-s3This AWS Solutions Konstruk implements an AWS Cloudfront fronting an AWS S3 Bucket.Here is a minimal deployable pattern definition:const{CloudFrontToS3}=require('@aws-solutions-konstruk/aws-cloudfront-s3');newCloudFrontToS3(stack,'test-cloudfront-s3',{deployBucket:true});Initializernew CloudFrontToS3(scope: Construct, id: string, props: CloudFrontToS3Props);ParametersscopeConstructidstringpropsCloudFrontToS3PropsPattern Construct PropsNameTypeDescriptiondeployBucketbooleanWhether 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 BucketcloudFrontDistributionProps?cloudfront.CloudFrontWebDistributionPropsOptional user provided props to override the default props for Cloudfront DistributioninsertHttpSecurityHeaders?booleanOptional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all resonses from cloudfrontPattern PropertiesNameTypeDescriptioncloudFrontWebDistribution()cloudfront.CloudFrontWebDistributionReturns an instance of cloudfront.CloudFrontWebDistribution created by the constructbucket()s3.BucketReturns an instance of s3.Bucket created by the constructArchitecture© Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Package: aws-solutions-konstruk.aws-cognito-apigateway-lambda
aws-cognito-apigateway-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-cognito-apigateway-lambda/LanguagePackage{: style="height:16px;width:16px"} Pythonaws_solutions_konstruk.aws_cognito_apigateway_lambda{: style="height:16px;width:16px"} Typescript@aws-solutions-konstruk/aws-cognito-apigateway-lambdaThis AWS Solutions Konstruk implements an Amazon Cognito securing an Amazon API Gateway Lambda backed REST APIs pattern.Here is a minimal deployable pattern definition:const{CognitoToApiGatewayToLambda}=require('@aws-solutions-konstruk/aws-cognito-apigateway-lambda');conststack=newStack(app,'test-cognito-apigateway-lambda-stack');constlambdaProps:lambda.FunctionProps={code:lambda.Code.asset(`${__dirname}/lambda`),runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler'};newCognitoToApiGatewayToLambda(stack,'test-cognito-apigateway-lambda',{lambdaFunctionProps:lambdaProps,deployLambda:true});Initializernew CognitoToApiGatewayToLambda(scope: Construct, id: string, props: CognitoToApiGatewayToLambdaProps);ParametersscopeConstructidstringpropsCognitoToApiGatewayToLambdaPropsPattern Construct PropsNameTypeDescriptiondeployLambdabooleanWhether to create a new Lambda function or use an existing Lambda functionexistingLambdaObj?lambda.FunctionExisting instance of Lambda Function objectlambdaFunctionProps?lambda.FunctionPropsOptional user provided props to override the default props for Lambda functionapiGatewayProps?api.LambdaRestApiPropsOptional user provided props to override the default props for API GatewaycognitoUserPoolProps?cognito.UserPoolPropsOptional user provided props to override the default props for Cognito User PoolcognitoUserPoolClientProps?cognito.UserPoolClientPropsOptional user provided props to override the default props for Cognito User Pool ClientPattern PropertiesNameTypeDescriptionrestApi()api.RestApiReturns an instance of api.RestApi created by the constructlambdaFunction()lambda.FunctionReturns an instance of lambda.Function created by the constructuserPool()cognito.UserPoolReturns an instance of cognito.UserPool created by the constructuserPoolClient()cognito.UserPoolClientReturns an instance of cognito.UserPoolClient created by the constructArchitecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.