Saravanan666/pypi-org huggingface dataset:
Package: aws-cdk.aws-autoscaling-hooktargets
Lifecycle Hook for the CDK AWS AutoScaling Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This library contains integration classes for AutoScaling lifecycle hooks.
Instances of these classes should be passed to theautoScalingGroup.addLifecycleHook()method.Lifecycle hooks can be activated in one of the following ways:Invoke a Lambda functionPublish to an SNS topicSend to an SQS queueFor more information on using this library, see the README of the@aws-cdk/aws-autoscalinglibrary.For more information about lifecycle hooks, seeAmazon EC2 AutoScaling Lifecycle hooksin the Amazon EC2 User Guide.
Package: aws-cdk.aws-autoscalingplans
AWS Auto Scaling Plans Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_autoscalingplansasautoscalingplansThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for AutoScalingPlans construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::AutoScalingPlans resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::AutoScalingPlans.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-backupgateway
AWS::BackupGateway Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_backupgatewayasbackupgatewayThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for BackupGateway construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::BackupGateway resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::BackupGateway.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-billingconductor
AWS::BillingConductor Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_billingconductorasbillingconductorThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for BillingConductor construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::BillingConductor resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::BillingConductor.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-budgets
AWS Budgets Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_budgetsasbudgetsThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for Budgets construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::Budgets resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::Budgets.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-cassandra
AWS::Cassandra Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_cassandraascassandraThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for Cassandra construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::Cassandra resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::Cassandra.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-ce
AWS::CE Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_ceasceThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for CE construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::CE resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::CE.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-chatbot
AWS::Chatbot Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.AWS Chatbot is an AWS service that enables DevOps and software development teams to use Slack chat rooms to monitor and respond to operational events in their AWS Cloud. AWS Chatbot processes AWS service notifications from Amazon Simple Notification Service (Amazon SNS), and forwards them to Slack chat rooms so teams can analyze and act on them immediately, regardless of location.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_chatbotaschatbotimportaws_cdk.aws_snsassnsimportaws_cdk.aws_iamasiamslack_channel=chatbot.SlackChannelConfiguration(self,"MySlackChannel",slack_channel_configuration_name="YOUR_CHANNEL_NAME",slack_workspace_id="YOUR_SLACK_WORKSPACE_ID",slack_channel_id="YOUR_SLACK_CHANNEL_ID")slack_channel.add_to_role_policy(iam.PolicyStatement(effect=iam.Effect.ALLOW,actions=["s3:GetObject"],resources=["arn:aws:s3:::abc/xyz/123.txt"]))slack_channel.add_notification_topic(sns.Topic(self,"MyTopic"))Log GroupSlack channel configuration automatically create a log group with the name/aws/chatbot/<configuration-name>inus-east-1upon first execution with
log data set to never expire.ThelogRetentionproperty can be used to set a different expiration period. A log group will be created if not already exists.
If the log group already exists, it's expiration will be configured to the value specified in this construct (never expire, by default).By default, CDK uses the AWS SDK retry options when interacting with the log group. ThelogRetentionRetryOptionsproperty
allows you to customize the maximum number of retries and base backoff duration.Notethat, iflogRetentionis set, aCloudFormation custom
resourceis added
to the stack that pre-creates the log group as part of the stack deployment, if it already doesn't exist, and sets the
correct log retention period (never expire, by default).
Package: aws-cdk.aws-cloud9
AWS Cloud9 Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a
browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular
programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your
development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your
office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing
serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of
serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair
program and track each other's inputs in real time.Creating EC2 EnvironmentEC2 Environments are defined withEc2Environment. To create an EC2 environment in the private subnet, specifysubnetSelectionwith privatesubnetType.# create a cloud9 ec2 environment in a new VPCvpc=ec2.Vpc(self,"VPC",max_azs=3)cloud9.Ec2Environment(self,"Cloud9Env",vpc=vpc)# or create the cloud9 environment in the default VPC with specific instanceTypedefault_vpc=ec2.Vpc.from_lookup(self,"DefaultVPC",is_default=True)cloud9.Ec2Environment(self,"Cloud9Env2",vpc=default_vpc,instance_type=ec2.InstanceType("t3.large"))# or specify in a different subnetSelectionc9env=cloud9.Ec2Environment(self,"Cloud9Env3",vpc=vpc,subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_NAT))# print the Cloud9 IDE URL in the outputCfnOutput(self,"URL",value=c9env.ide_url)Cloning RepositoriesUseclonedRepositoriesto clone one or multiple AWS Codecommit repositories into the environment:importaws_cdk.aws_codecommitascodecommit# create a new Cloud9 environment and clone the two repositories# vpc: ec2.Vpc# create a codecommit repository to clone into the cloud9 environmentrepo_new=codecommit.Repository(self,"RepoNew",repository_name="new-repo")# import an existing codecommit repository to clone into the cloud9 environmentrepo_existing=codecommit.Repository.from_repository_name(self,"RepoExisting","existing-repo")cloud9.Ec2Environment(self,"C9Env",vpc=vpc,cloned_repositories=[cloud9.CloneRepository.from_code_commit(repo_new,"/src/new-repo"),cloud9.CloneRepository.from_code_commit(repo_existing,"/src/existing-repo")])
Package: aws-cdk.aws-cloudwatch-actions
CloudWatch Alarm Actions library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This library contains a set of classes which can be used as CloudWatch Alarm actions.The currently implemented actions are: EC2 Actions, SNS Actions, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling ActionsEC2 Action Example# Alarm must be configured with an EC2 per-instance metric# alarm: cloudwatch.Alarm# Attach a reboot when alarm triggersalarm.add_alarm_action(actions.Ec2Action(actions.Ec2InstanceAction.REBOOT))SSM OpsCenter Action Example# alarm: cloudwatch.Alarm# Create an OpsItem with specific severity and category when alarm triggersalarm.add_alarm_action(actions.SsmAction(actions.OpsItemSeverity.CRITICAL,actions.OpsItemCategory.PERFORMANCE))See@aws-cdk/aws-cloudwatchfor more information.
Package: aws-cdk.aws-codeartifact
AWS::CodeArtifact Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_codeartifactascodeartifactThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for CodeArtifact construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::CodeArtifact resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::CodeArtifact.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-codecommit
AWS CodeCommit Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.AWS CodeCommit is a version control service that enables you to privately store and manage Git repositories in the AWS cloud.For further information on CodeCommit,
see theAWS CodeCommit documentation.To add a CodeCommit Repository to your stack:repo=codecommit.Repository(self,"Repository",repository_name="MyRepositoryName",description="Some description.")Use therepositoryCloneUrlHttp,repositoryCloneUrlSshorrepositoryCloneUrlGrcproperty to clone your repository.To add an Amazon SNS trigger to your repository:# repo: codecommit.Repository# trigger is established for all repository actions on all branches by default.repo.notify("arn:aws:sns:*:123456789012:my_topic")Add initial commitIt is possible to initialize the Repository via theCodeclass.
It provides methods for loading code from a directory,.zipfile and from a pre-created CDK Asset.Example:repo=codecommit.Repository(self,"Repository",repository_name="MyRepositoryName",code=codecommit.Code.from_directory(path.join(__dirname,"directory/"),"develop"))EventsCodeCommit repositories emit Amazon CloudWatch events for certain activities.
Use therepo.onXxxmethods to define rules that trigger on these events
and invoke targets as a result:importaws_cdk.aws_snsassnsimportaws_cdk.aws_events_targetsastargets# repo: codecommit.Repository# project: codebuild.PipelineProject# my_topic: sns.Topic# starts a CodeBuild project when a commit is pushed to the "master" branch of the reporepo.on_commit("CommitToMaster",target=targets.CodeBuildProject(project),branches=["master"])# publishes a message to an Amazon SNS topic when a comment is made on a pull requestrule=repo.on_comment_on_pull_request("CommentOnPullRequest",target=targets.SnsTopic(my_topic))CodeStar NotificationsTo define CodeStar Notification rules for Repositories, use one of thenotifyOnXxx()methods.
They are very similar toonXxx()methods for CloudWatch events:importaws_cdk.aws_chatbotaschatbot# repository: codecommit.Repositorytarget=chatbot.SlackChannelConfiguration(self,"MySlackChannel",slack_channel_configuration_name="YOUR_CHANNEL_NAME",slack_workspace_id="YOUR_SLACK_WORKSPACE_ID",slack_channel_id="YOUR_SLACK_CHANNEL_ID")rule=repository.notify_on_pull_request_created("NotifyOnPullRequestCreated",target)
Package: aws-cdk.aws-codeguruprofiler
AWS::CodeGuruProfiler Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance.InstallationImport to your project:importaws_cdk.aws_codeguruprofilerascodeguruprofilerBasic usageHere's how to setup a profiling group and give your compute role permissions to publish to the profiling group to the profiling agent can publish profiling information:# The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)publish_app_role=iam.Role(self,"PublishAppRole",assumed_by=iam.AccountRootPrincipal())profiling_group=codeguruprofiler.ProfilingGroup(self,"MyProfilingGroup")profiling_group.grant_publish(publish_app_role)Compute Platform configurationCode Guru Profiler supports multiple compute environments.
They can be configured when creating a Profiling Group by using thecomputePlatformproperty:profiling_group=codeguruprofiler.ProfilingGroup(self,"MyProfilingGroup",compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA)
Package: aws-cdk.aws-codegurureviewer
AWS::CodeGuruReviewer Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_codegurureviewerascodegurureviewerThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for CodeGuruReviewer construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::CodeGuruReviewer resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::CodeGuruReviewer.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-codestar
AWS::CodeStar Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.GitHub RepositoryTo create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:importaws_cdk.aws_codestarascodestarimportaws_cdk.aws_s3ass3codestar.GitHubRepository(self,"GitHubRepo",owner="aws",repository_name="aws-cdk",access_token=SecretValue.secrets_manager("my-github-token",json_field="token"),contents_bucket=s3.Bucket.from_bucket_name(self,"Bucket","bucket-name"),contents_key="import.zip")Update or Delete the GitHubRepositoryAt this moment, updates to theGitHubRepositoryare not supported and the repository will not be deleted upon the deletion of the CloudFormation stack. You will need to update or delete the GitHub repository manually.
Package: aws-cdk.aws-codestar-alpha
AWS::CodeStar Construct Library---The APIs of higher level constructs in this module are experimental and under active development.
They are subject to non-backward compatible changes or removal in any future version. These are
not subject to theSemantic Versioningmodel and breaking changes will be
announced in the release notes. 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.GitHub RepositoryTo create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:importaws_cdk.aws_codestar_alphaascodestarimportaws_cdk.aws_s3ass3codestar.GitHubRepository(self,"GitHubRepo",owner="aws",repository_name="aws-cdk",access_token=SecretValue.secrets_manager("my-github-token",json_field="token"),contents_bucket=s3.Bucket.from_bucket_name(self,"Bucket","bucket-name"),contents_key="import.zip")Update or Delete the GitHubRepositoryAt this moment, updates to theGitHubRepositoryare not supported and the repository will not be deleted upon the deletion of the CloudFormation stack. You will need to update or delete the GitHub repository manually.
Package: aws-cdk.aws-codestarconnections
AWS::CodeStarConnections Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_codestarconnectionsascodestarconnectionsThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for CodeStarConnections construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::CodeStarConnections resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::CodeStarConnections.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)