INSTRUCTION
stringlengths
1
8.43k
RESPONSE
stringlengths
75
104k
Expands a string of numbers separated by commas and hyphens into a list of integers. For example: 2 - 3 5 - 7 20 - 21 23 100 - 200
def hyphen_range(string): ''' Expands a string of numbers separated by commas and hyphens into a list of integers. For example: 2-3,5-7,20-21,23,100-200 ''' list_numbers = list() temporary_list = string.split(',') for element in temporary_list: sub_element = element.split('-') ...
Convert uptime strings to seconds. The string can be formatted various ways.
def convert_uptime_string_seconds(uptime): '''Convert uptime strings to seconds. The string can be formatted various ways.''' regex_list = [ # n years, n weeks, n days, n hours, n minutes where each of the fields except minutes # is optional. Additionally, can be either singular or plural ...
Creates an endpoint using the provided settings. See also: AWS API Documentation: example: response = client. create_endpoint ( EndpointIdentifier = string EndpointType = source | target EngineName = string Username = string Password = string ServerName = string Port = 123 DatabaseName = string ExtraConnectionAttribute...
def create_endpoint(EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, KmsKeyId=None, Tags=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None): ""...
Creates the replication instance using the specified parameters. See also: AWS API Documentation: example: response = client. create_replication_instance ( ReplicationInstanceIdentifier = string AllocatedStorage = 123 ReplicationInstanceClass = string VpcSecurityGroupIds = [ string ] AvailabilityZone = string Replicati...
def create_replication_instance(ReplicationInstanceIdentifier=None, AllocatedStorage=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, AvailabilityZone=None, ReplicationSubnetGroupIdentifier=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AutoMinorVersionUpgrade=None, Tags=None, Km...
Creates a replication task using the specified parameters. See also: AWS API Documentation: example: response = client. create_replication_task ( ReplicationTaskIdentifier = string SourceEndpointArn = string TargetEndpointArn = string ReplicationInstanceArn = string MigrationType = full - load | cdc | full - load - and...
def create_replication_task(ReplicationTaskIdentifier=None, SourceEndpointArn=None, TargetEndpointArn=None, ReplicationInstanceArn=None, MigrationType=None, TableMappings=None, ReplicationTaskSettings=None, CdcStartTime=None, Tags=None): """ Creates a replication task using the specified parameters. See als...
Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events see Working with Events and Notifications. See also: AWS API Documentation: example: response = client. describe_events ( SourceIdentifier = string SourceType = replication - ins...
def describe_events(SourceIdentifier=None, SourceType=None, StartTime=None, EndTime=None, Duration=None, EventCategories=None, Filters=None, MaxRecords=None, Marker=None): """ Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS e...
Modifies the specified endpoint. See also: AWS API Documentation: example: response = client. modify_endpoint ( EndpointArn = string EndpointIdentifier = string EndpointType = source | target EngineName = string Username = string Password = string ServerName = string Port = 123 DatabaseName = string ExtraConnectionAttr...
def modify_endpoint(EndpointArn=None, EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None): """ Mo...
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window. See also: AWS API Documentation: example: response = client. modify_replication_instance ( Replication...
def modify_replication_instance(ReplicationInstanceArn=None, AllocatedStorage=None, ApplyImmediately=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AllowMajorVersionUpgrade=None, AutoMinorVersionUpgrade=None, ReplicationInstanceIdentifie...
Creates a new fleet. See also: AWS API Documentation: example: response = client. create_fleet ( Name = string ImageName = string InstanceType = string ComputeCapacity = { DesiredInstances: 123 } VpcConfig = { SubnetIds: [ string ] } MaxUserDurationInSeconds = 123 DisconnectTimeoutInSeconds = 123 Description = string D...
def create_fleet(Name=None, ImageName=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None): """ Creates a new fleet. See also: AWS API Documentation :...
Updates an existing fleet. All the attributes except the fleet name can be updated in the STOPPED state. When a fleet is in the RUNNING state only DisplayName and ComputeCapacity can be updated. A fleet cannot be updated in a status of STARTING or STOPPING. See also: AWS API Documentation: example: response = client. u...
def update_fleet(ImageName=None, Name=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, DeleteVpcConfig=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None): """ Updates an existing fleet. All the attributes exce...
Deploys an application revision through the specified deployment group. See also: AWS API Documentation: example: response = client. create_deployment ( applicationName = string deploymentGroupName = string revision = { revisionType: S3 | GitHub s3Location: { bucket: string key: string bundleType: tar | tgz | zip versi...
def create_deployment(applicationName=None, deploymentGroupName=None, revision=None, deploymentConfigName=None, description=None, ignoreApplicationStopFailures=None, targetInstances=None, autoRollbackConfiguration=None, updateOutdatedInstancesOnly=None, fileExistsBehavior=None): """ Deploys an application revis...
Creates a deployment group to which application revisions will be deployed. See also: AWS API Documentation: example: response = client. create_deployment_group ( applicationName = string deploymentGroupName = string deploymentConfigName = string ec2TagFilters = [ { Key: string Value: string Type: KEY_ONLY | VALUE_ONLY...
def create_deployment_group(applicationName=None, deploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=None, deploymentStyle=None, blueGreenD...
Changes information about a deployment group. See also: AWS API Documentation: example: response = client. update_deployment_group ( applicationName = string currentDeploymentGroupName = string newDeploymentGroupName = string deploymentConfigName = string ec2TagFilters = [ { Key: string Value: string Type: KEY_ONLY | V...
def update_deployment_group(applicationName=None, currentDeploymentGroupName=None, newDeploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=No...
Creates a file share on an existing file gateway. In Storage Gateway a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using a Network File System ( NFS ) interface. This operation is only supported in the file gateway architecture. See also: AWS API Docume...
def create_nfs_file_share(ClientToken=None, NFSFileShareDefaults=None, GatewayARN=None, KMSEncrypted=None, KMSKey=None, Role=None, LocationARN=None, DefaultStorageClass=None, ClientList=None, Squash=None, ReadOnly=None): """ Creates a file share on an existing file gateway. In Storage Gateway, a file share is a...
Creates a target group. To register targets with the target group use RegisterTargets. To update the health check settings for the target group use ModifyTargetGroup. To monitor the health of targets in the target group use DescribeTargetHealth. To route traffic to the targets in a target group specify the target group...
def create_target_group(Name=None, Protocol=None, Port=None, VpcId=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Creates a target group. ...
Modifies the health checks used when evaluating the health state of the targets in the specified target group. To monitor the health of the targets use DescribeTargetHealth. See also: AWS API Documentation Examples This example changes the configuration of the health checks used to evaluate the health of the targets fo...
def modify_target_group(TargetGroupArn=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Modifies the health checks used when evaluating the hea...
Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud ( Amazon EC2 ) instances each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications ( see Amazon EC2 Instance Types for more informati...
def create_fleet(Name=None, Description=None, BuildId=None, ServerLaunchPath=None, ServerLaunchParameters=None, LogPaths=None, EC2InstanceType=None, EC2InboundPermissions=None, NewGameSessionProtectionPolicy=None, RuntimeConfiguration=None, ResourceCreationLimitPolicy=None, MetricGroups=None): """ Creates a new...
Composes an email message based on input data and then immediately queues the message for sending. There are several important points to know about SendEmail: See also: AWS API Documentation Examples The following example sends a formatted email: Expected Output:: example: response = client. send_email ( Source = strin...
def send_email(Source=None, Destination=None, Message=None, ReplyToAddresses=None, ReturnPath=None, SourceArn=None, ReturnPathArn=None, Tags=None, ConfigurationSetName=None): """ Composes an email message based on input data, and then immediately queues the message for sending. There are several important p...
Gets statistics for the specified metric. Amazon CloudWatch retains metric data as follows: Note that CloudWatch started retaining 5 - minute and 1 - hour metric data as of 9 July 2016. The maximum number of data points returned from a single call is 1 440. If you request more than 1 440 data points Amazon CloudWatch r...
def get_metric_statistics(Namespace=None, MetricName=None, Dimensions=None, StartTime=None, EndTime=None, Period=None, Statistics=None, ExtendedStatistics=None, Unit=None): """ Gets statistics for the specified metric. Amazon CloudWatch retains metric data as follows: Note that CloudWatch started retain...
Creates or updates an alarm and associates it with the specified metric. Optionally this operation can associate one or more Amazon SNS resources with the alarm. When this operation creates an alarm the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its state is set appropriately. Any a...
def put_metric_alarm(AlarmName=None, AlarmDescription=None, ActionsEnabled=None, OKActions=None, AlarmActions=None, InsufficientDataActions=None, MetricName=None, Namespace=None, Statistic=None, ExtendedStatistic=None, Dimensions=None, Period=None, Unit=None, EvaluationPeriods=None, Threshold=None, ComparisonOperator=N...
Creates an Auto Scaling group with the specified name and attributes. If you exceed your maximum limit of Auto Scaling groups which by default is 20 per region the call fails. For information about viewing and updating this limit see DescribeAccountLimits. For more information see Auto Scaling Groups in the Auto Scalin...
def create_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, InstanceId=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, LoadBalancerNames=None, TargetGroupARNs=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VP...
Creates a launch configuration. If you exceed your maximum limit of launch configurations which by default is 100 per region the call fails. For information about viewing and updating this limit see DescribeAccountLimits. For more information see Launch Configurations in the Auto Scaling User Guide. See also: AWS API D...
def create_launch_configuration(LaunchConfigurationName=None, ImageId=None, KeyName=None, SecurityGroups=None, ClassicLinkVPCId=None, ClassicLinkVPCSecurityGroups=None, UserData=None, InstanceId=None, InstanceType=None, KernelId=None, RamdiskId=None, BlockDeviceMappings=None, InstanceMonitoring=None, SpotPrice=None, Ia...
Creates or updates a policy for an Auto Scaling group. To update an existing policy use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request. If you exceed your maximum limit of step adjustments wh...
def put_scaling_policy(AutoScalingGroupName=None, PolicyName=None, PolicyType=None, AdjustmentType=None, MinAdjustmentStep=None, MinAdjustmentMagnitude=None, ScalingAdjustment=None, Cooldown=None, MetricAggregationType=None, StepAdjustments=None, EstimatedInstanceWarmup=None): """ Creates or updates a policy fo...
Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action if you leave a parameter unspecified the corresponding value remains unchanged. For more information see Scheduled Scaling in the Auto Scaling User Guide. See also: AWS API Documentation Examples This examp...
def put_scheduled_update_group_action(AutoScalingGroupName=None, ScheduledActionName=None, Time=None, StartTime=None, EndTime=None, Recurrence=None, MinSize=None, MaxSize=None, DesiredCapacity=None): """ Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling a...
Updates the configuration for the specified Auto Scaling group. The new settings take effect on any scaling activities after this call returns. Scaling activities that are currently in progress aren t affected. To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to false you must fir...
def update_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VPCZoneIdentifier=None, TerminationPolicies=None, NewInstancesPro...
Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers: For more information see Searching Your Data in the Amazon CloudSearch Developer Guide. The endpoint for submitting Search re...
def search(cursor=None, expr=None, facet=None, filterQuery=None, highlight=None, partial=None, query=None, queryOptions=None, queryParser=None, returnFields=None, size=None, sort=None, start=None, stats=None): """ Retrieves a list of documents that match the specified search criteria. How you specify the search...
Creates a clone of a specified stack. For more information see Clone a Stack. By default all parameters are set to the values used by the parent stack. See also: AWS API Documentation: example: response = client. clone_stack ( SourceStackId = string Name = string Region = string VpcId = string Attributes = { string: st...
def clone_stack(SourceStackId=None, Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=Non...
Creates an app for a specified stack. For more information see Creating Apps. See also: AWS API Documentation: example: response = client. create_app ( StackId = string Shortname = string Name = string Description = string DataSources = [ { Type: string Arn: string DatabaseName: string } ] Type = aws - flow - ruby | ja...
def create_app(StackId=None, Shortname=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None): """ Creates an app for a specified stack. For more information, see Creating Apps . See also: AWS AP...
Creates an instance in a specified stack. For more information see Adding an Instance to a Layer. See also: AWS API Documentation: example: response = client. create_instance ( StackId = string LayerIds = [ string ] InstanceType = string AutoScalingType = load | timer Hostname = string Os = string AmiId = string SshKey...
def create_instance(StackId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, AvailabilityZone=None, VirtualizationType=None, SubnetId=None, Architecture=None, RootDeviceType=None, BlockDeviceMappings=None, InstallUpdatesOnBoot=None, EbsOptimized=None, Ag...
Creates a layer. For more information see How to Create a Layer. See also: AWS API Documentation: example: response = client. create_layer ( StackId = string Type = aws - flow - ruby | ecs - cluster | java - app | lb | web | php - app | rails - app | nodejs - app | memcached | db - master | monitoring - master | custom...
def create_layer(StackId=None, Type=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, Cust...
Creates a new stack. For more information see Create a New Stack. See also: AWS API Documentation: example: response = client. create_stack ( Name = string Region = string VpcId = string Attributes = { string: string } ServiceRoleArn = string DefaultInstanceProfileArn = string DefaultOs = string HostnameTheme = string ...
def create_stack(Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, UseOpsworksSecur...
Updates a specified app. See also: AWS API Documentation: example: response = client. update_app ( AppId = string Name = string Description = string DataSources = [ { Type: string Arn: string DatabaseName: string } ] Type = aws - flow - ruby | java | rails | php | nodejs | static | other AppSource = { Type: git | svn |...
def update_app(AppId=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None): """ Updates a specified app. See also: AWS API Documentation :example: response = client.update_app( ...
Updates a specified instance. See also: AWS API Documentation: example: response = client. update_instance ( InstanceId = string LayerIds = [ string ] InstanceType = string AutoScalingType = load | timer Hostname = string Os = string AmiId = string SshKeyName = string Architecture = x86_64 | i386 InstallUpdatesOnBoot =...
def update_instance(InstanceId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, Architecture=None, InstallUpdatesOnBoot=None, EbsOptimized=None, AgentVersion=None): """ Updates a specified instance. See also: AWS API Documentation ...
Updates a specified layer. See also: AWS API Documentation: example: response = client. update_layer ( LayerId = string Name = string Shortname = string Attributes = { string: string } CloudWatchLogsConfiguration = { Enabled: True|False LogStreams: [ { LogGroupName: string DatetimeFormat: string TimeZone: LOCAL | UTC F...
def update_layer(LayerId=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, CustomRecipes=N...
Updates a specified stack. See also: AWS API Documentation: example: response = client. update_stack ( StackId = string Name = string Attributes = { string: string } ServiceRoleArn = string DefaultInstanceProfileArn = string DefaultOs = string HostnameTheme = string DefaultAvailabilityZone = string DefaultSubnetId = st...
def update_stack(StackId=None, Name=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, CustomCookbooksSource=None,...
Creates a build project. See also: AWS API Documentation: example: response = client. create_project ( name = string description = string source = { type: CODECOMMIT | CODEPIPELINE | GITHUB | S3 location: string buildspec: string auth: { type: OAUTH resource: string } } artifacts = { type: CODEPIPELINE | S3 | NO_ARTIFA...
def create_project(name=None, description=None, source=None, artifacts=None, environment=None, serviceRole=None, timeoutInMinutes=None, encryptionKey=None, tags=None): """ Creates a build project. See also: AWS API Documentation :example: response = client.create_project( name='string'...
Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or update a bot you only required to specify a name. You can use this to add intents later or to remove intents from an existing bot. When you create a bot with a name only the bot is created or updated but Amazon Lex returns the resp...
def put_bot(name=None, description=None, intents=None, clarificationPrompt=None, abortStatement=None, idleSessionTTLInSeconds=None, voiceId=None, checksum=None, processBehavior=None, locale=None, childDirected=None): """ Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or up...
Creates an intent or replaces an existing intent. To define the interaction between the user and your bot you use one or more intents. For a pizza ordering bot for example you would create an OrderPizza intent. To create an intent or replace an existing intent you must provide the following: You can specify other optio...
def put_intent(name=None, description=None, slots=None, sampleUtterances=None, confirmationPrompt=None, rejectionStatement=None, followUpPrompt=None, conclusionStatement=None, dialogCodeHook=None, fulfillmentActivity=None, parentIntentSignature=None, checksum=None): """ Creates an intent or replaces an existing...
Creates a cache cluster. All nodes in the cache cluster run the same protocol - compliant cache engine software either Memcached or Redis. See also: AWS API Documentation: example: response = client. create_cache_cluster ( CacheClusterId = string ReplicationGroupId = string AZMode = single - az | cross - az PreferredAv...
def create_cache_cluster(CacheClusterId=None, ReplicationGroupId=None, AZMode=None, PreferredAvailabilityZone=None, PreferredAvailabilityZones=None, NumCacheNodes=None, CacheNodeType=None, Engine=None, EngineVersion=None, CacheParameterGroupName=None, CacheSubnetGroupName=None, CacheSecurityGroupNames=None, SecurityGro...
Creates a Redis ( cluster mode disabled ) or a Redis ( cluster mode enabled ) replication group. A Redis ( cluster mode disabled ) replication group is a collection of cache clusters where one of the cache clusters is a read/ write primary and the others are read - only replicas. Writes to the primary are asynchronousl...
def create_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, AutomaticFailoverEnabled=None, NumCacheClusters=None, PreferredCacheClusterAZs=None, NumNodeGroups=None, ReplicasPerNodeGroup=None, NodeGroupConfiguration=None, CacheNodeType=None, Engine=None, EngineVersion=N...
Modifies the settings for a cache cluster. You can use this operation to change one or more cluster configuration parameters by specifying the parameters and the new values. See also: AWS API Documentation: example: response = client. modify_cache_cluster ( CacheClusterId = string NumCacheNodes = 123 CacheNodeIdsToRemo...
def modify_cache_cluster(CacheClusterId=None, NumCacheNodes=None, CacheNodeIdsToRemove=None, AZMode=None, NewAvailabilityZones=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, NotificationTopicStatus=None, ApplyImmediate...
Modifies the settings for a replication group. See also: AWS API Documentation: example: response = client. modify_replication_group ( ReplicationGroupId = string ReplicationGroupDescription = string PrimaryClusterId = string SnapshottingClusterId = string AutomaticFailoverEnabled = True|False CacheSecurityGroupNames =...
def modify_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, SnapshottingClusterId=None, AutomaticFailoverEnabled=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, Notific...
RunJobFlow creates and starts running a new cluster ( job flow ). The cluster runs the steps specified. After the steps complete the cluster stops and the HDFS partition is lost. To prevent loss of data configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAlive...
def run_job_flow(Name=None, LogUri=None, AdditionalInfo=None, AmiVersion=None, ReleaseLabel=None, Instances=None, Steps=None, BootstrapActions=None, SupportedProducts=None, NewSupportedProducts=None, Applications=None, Configurations=None, VisibleToAllUsers=None, JobFlowRole=None, ServiceRole=None, Tags=None, SecurityC...
Returns a list of BatchPrediction operations that match the search criteria in the request. See also: AWS API Documentation: example: response = client. describe_batch_predictions ( FilterVariable = CreatedAt | LastUpdatedAt | Status | Name | IAMUser | MLModelId | DataSourceId | DataURI EQ = string GT = string LT = str...
def describe_batch_predictions(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None): """ Returns a list of BatchPrediction operations that match the search criteria in the request. See also: AWS API Documentation :e...
Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists or if it has an expected attribute value. In addition to deleting an item you can also return the item s attribute values in the same operation using the ReturnValues parameter. Unless you ...
def delete_item(TableName=None, Key=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None): """ Deletes a single item in a table by primary key. You ...
Creates a new item or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table the new item completely replaces the existing item. You can perform a conditional put operation ( add a new item if one with the specified primary key doesn t exist ...
def put_item(TableName=None, Item=None, Expected=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionalOperator=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None): """ Creates a new item, or replaces an old item with a new ...
A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index. Use the KeyConditionExpression parameter to provide a specific value for the partition key. The Query operation will return all of the items from the table or index with that partition key value. Yo...
def query(TableName=None, IndexName=None, Select=None, AttributesToGet=None, Limit=None, ConsistentRead=None, KeyConditions=None, QueryFilter=None, ConditionalOperator=None, ScanIndexForward=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, ProjectionExpression=None, FilterExpression=None, KeyConditionExpressi...
The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items you can provide a FilterExpression operation. If the total number of scanned items exceeds the maximum data set size limit of 1 MB the scan stops and results are ...
def scan(TableName=None, IndexName=None, AttributesToGet=None, Limit=None, Select=None, ScanFilter=None, ConditionalOperator=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, TotalSegments=None, Segment=None, ProjectionExpression=None, FilterExpression=None, ExpressionAttributeNames=None, ExpressionAttributeVa...
Edits an existing item s attributes or adds a new item to the table if it does not already exist. You can put delete or add attribute values. You can also perform a conditional update on an existing item ( insert a new attribute name - value pair if it doesn t exist or replace an existing name - value pair if it has ce...
def update_item(TableName=None, Key=None, AttributeUpdates=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, UpdateExpression=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None): """ Edits a...
Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount Amazon ECS spawns another copy of the task in the specified cluster. To update an existing service see UpdateService. In addition to maintaining the desired count of tasks ...
def create_service(cluster=None, serviceName=None, taskDefinition=None, loadBalancers=None, desiredCount=None, clientToken=None, role=None, deploymentConfiguration=None, placementConstraints=None, placementStrategy=None): """ Runs and maintains a desired number of tasks from a specified task definition. If the ...
This operation registers a domain. Domains are registered by the AWS registrar partner Gandi. For some top - level domains ( TLDs ) this operation requires extra parameters. When you register a domain Amazon Route 53 does the following: See also: AWS API Documentation: example: response = client. register_domain ( Doma...
def register_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None): """ This operation registers a domain. Domains are reg...
This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete the domain is registered with the AWS registrar partner Gandi. For transfer requirements a detailed procedure and information about viewing the status of a domain transfer see Transferring Registration for a Domai...
def transfer_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, Nameservers=None, AuthCode=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None): """ This operation tr...
Simulate how a set of IAM policies and optionally a resource - based policy works with a list of API actions and AWS resources to determine the policies effective permissions. The policies are provided as strings. The simulation does not perform the API actions ; it only checks the authorization to determine if the sim...
def simulate_custom_policy(PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None): """ Simulate how a set of IAM policies and optionally a resource-based policy works with a...
Simulate how a set of IAM policies attached to an IAM entity works with a list of API actions and AWS resources to determine the policies effective permissions. The entity can be an IAM user group or role. If you specify a user then the simulation also includes all of the policies that are attached to groups that the u...
def simulate_principal_policy(PolicySourceArn=None, PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None): """ Simulate how a set of IAM policies attached to an IAM entity ...
Updates the password policy settings for the AWS account. For more information about using a password policy see Managing an IAM Password Policy in the IAM User Guide. See also: AWS API Documentation Examples The following command sets the password policy to require a minimum length of eight characters and to require o...
def update_account_password_policy(MinimumPasswordLength=None, RequireSymbols=None, RequireNumbers=None, RequireUppercaseCharacters=None, RequireLowercaseCharacters=None, AllowUsersToChangePassword=None, MaxPasswordAge=None, PasswordReusePrevention=None, HardExpiry=None): """ Updates the password policy setting...
Creates a network profile. See also: AWS API Documentation: example: response = client. create_network_profile ( projectArn = string name = string description = string type = CURATED | PRIVATE uplinkBandwidthBits = 123 downlinkBandwidthBits = 123 uplinkDelayMs = 123 downlinkDelayMs = 123 uplinkJitterMs = 123 downlinkJi...
def create_network_profile(projectArn=None, name=None, description=None, type=None, uplinkBandwidthBits=None, downlinkBandwidthBits=None, uplinkDelayMs=None, downlinkDelayMs=None, uplinkJitterMs=None, downlinkJitterMs=None, uplinkLossPercent=None, downlinkLossPercent=None): """ Creates a network profile. Se...
Updates the network profile with specific settings. See also: AWS API Documentation: example: response = client. update_network_profile ( arn = string name = string description = string type = CURATED | PRIVATE uplinkBandwidthBits = 123 downlinkBandwidthBits = 123 uplinkDelayMs = 123 downlinkDelayMs = 123 uplinkJitterM...
def update_network_profile(arn=None, name=None, description=None, type=None, uplinkBandwidthBits=None, downlinkBandwidthBits=None, uplinkDelayMs=None, downlinkDelayMs=None, uplinkJitterMs=None, downlinkJitterMs=None, uplinkLossPercent=None, downlinkLossPercent=None): """ Updates the network profile with specifi...
This operation generates a pre - paid UPS shipping label that you will use to ship your device to AWS for processing. See also: AWS API Documentation: example: response = client. get_shipping_label ( jobIds = [ string ] name = string company = string phoneNumber = string country = string stateOrProvince = string city =...
def get_shipping_label(jobIds=None, name=None, company=None, phoneNumber=None, country=None, stateOrProvince=None, city=None, postalCode=None, street1=None, street2=None, street3=None, APIVersion=None): """ This operation generates a pre-paid UPS shipping label that you will use to ship your device to AWS for p...
Adds a new Authorizer resource to an existing RestApi resource. See also: AWS API Documentation: example: response = client. create_authorizer ( restApiId = string name = string type = TOKEN | COGNITO_USER_POOLS providerARNs = [ string ] authType = string authorizerUri = string authorizerCredentials = string identitySo...
def create_authorizer(restApiId=None, name=None, type=None, providerARNs=None, authType=None, authorizerUri=None, authorizerCredentials=None, identitySource=None, identityValidationExpression=None, authorizerResultTtlInSeconds=None): """ Adds a new Authorizer resource to an existing RestApi resource. See ...
Represents a put integration. See also: AWS API Documentation: example: response = client. put_integration ( restApiId = string resourceId = string httpMethod = string type = HTTP | AWS | MOCK | HTTP_PROXY | AWS_PROXY integrationHttpMethod = string uri = string credentials = string requestParameters = { string: string ...
def put_integration(restApiId=None, resourceId=None, httpMethod=None, type=None, integrationHttpMethod=None, uri=None, credentials=None, requestParameters=None, requestTemplates=None, passthroughBehavior=None, cacheNamespace=None, cacheKeyParameters=None, contentHandling=None): """ Represents a put integration....
Add a method to an existing Resource resource. See also: AWS API Documentation: example: response = client. put_method ( restApiId = string resourceId = string httpMethod = string authorizationType = string authorizerId = string apiKeyRequired = True|False operationName = string requestParameters = { string: True|False...
def put_method(restApiId=None, resourceId=None, httpMethod=None, authorizationType=None, authorizerId=None, apiKeyRequired=None, operationName=None, requestParameters=None, requestModels=None, requestValidatorId=None): """ Add a method to an existing Resource resource. See also: AWS API Documentation ...
Describes the specified users. You can describe all users or filter the results ( for example by status or organization ). By default Amazon WorkDocs returns the first 24 active or pending users. If there are more results the response includes a marker that you can use to request the next set of results. See also: AWS ...
def describe_users(OrganizationId=None, UserIds=None, Query=None, Include=None, Order=None, Sort=None, Marker=None, Limit=None, Fields=None): """ Describes the specified users. You can describe all users or filter the results (for example, by status or organization). By default, Amazon WorkDocs returns the ...
Creates a list of changes that will be applied to a stack so that you can review the changes before executing them. You can create a change set for a stack that doesn t exist or an existing stack. If you create a change set for a stack that doesn t exist the change set shows all of the resources that AWS CloudFormation...
def create_change_set(StackName=None, TemplateBody=None, TemplateURL=None, UsePreviousTemplate=None, Parameters=None, Capabilities=None, ResourceTypes=None, RoleARN=None, NotificationARNs=None, Tags=None, ChangeSetName=None, ClientToken=None, Description=None, ChangeSetType=None): """ Creates a list of changes ...
Creates a stack as specified in the template. After the call completes successfully the stack creation starts. You can check the status of the stack via the DescribeStacks API. See also: AWS API Documentation: example: response = client. create_stack ( StackName = string TemplateBody = string TemplateURL = string Param...
def create_stack(StackName=None, TemplateBody=None, TemplateURL=None, Parameters=None, DisableRollback=None, TimeoutInMinutes=None, NotificationARNs=None, Capabilities=None, ResourceTypes=None, RoleARN=None, OnFailure=None, StackPolicyBody=None, StackPolicyURL=None, Tags=None, ClientRequestToken=None): """ Crea...
Updates a stack as specified in the template. After the call completes successfully the stack update starts. You can check the status of the stack via the DescribeStacks action. To get a copy of the template for an existing stack you can use the GetTemplate action. For more information about creating an update template...
def update_stack(StackName=None, TemplateBody=None, TemplateURL=None, UsePreviousTemplate=None, StackPolicyDuringUpdateBody=None, StackPolicyDuringUpdateURL=None, Parameters=None, Capabilities=None, ResourceTypes=None, RoleARN=None, StackPolicyBody=None, StackPolicyURL=None, NotificationARNs=None, Tags=None, ClientRequ...
Creates a new case in the AWS Support Center. This operation is modeled on the behavior of the AWS Support Center Create Case page. Its parameters require you to specify the following information: A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases operation to...
def create_case(subject=None, serviceCode=None, severityCode=None, categoryCode=None, communicationBody=None, ccEmailAddresses=None, language=None, issueType=None, attachmentSetId=None): """ Creates a new case in the AWS Support Center. This operation is modeled on the behavior of the AWS Support Center Create ...
Returns a list of cases that you specify by passing one or more case IDs. In addition you can filter the cases by date by setting values for the afterTime and beforeTime request parameters. You can set values for the includeResolvedCases and includeCommunications request parameters to control how much information is re...
def describe_cases(caseIdList=None, displayId=None, afterTime=None, beforeTime=None, includeResolvedCases=None, nextToken=None, maxResults=None, language=None, includeCommunications=None): """ Returns a list of cases that you specify by passing one or more case IDs. In addition, you can filter the cases by date...
Creates a new Amazon Cognito user pool and sets the password policy for the pool. See also: AWS API Documentation: example: response = client. create_user_pool ( PoolName = string Policies = { PasswordPolicy: { MinimumLength: 123 RequireUppercase: True|False RequireLowercase: True|False RequireNumbers: True|False Requi...
def create_user_pool(PoolName=None, Policies=None, LambdaConfig=None, AutoVerifiedAttributes=None, AliasAttributes=None, SmsVerificationMessage=None, EmailVerificationMessage=None, EmailVerificationSubject=None, SmsAuthenticationMessage=None, MfaConfiguration=None, DeviceConfiguration=None, EmailConfiguration=None, Sms...
Creates the user pool client. See also: AWS API Documentation: example: response = client. create_user_pool_client ( UserPoolId = string ClientName = string GenerateSecret = True|False RefreshTokenValidity = 123 ReadAttributes = [ string ] WriteAttributes = [ string ] ExplicitAuthFlows = [ ADMIN_NO_SRP_AUTH | CUSTOM_AU...
def create_user_pool_client(UserPoolId=None, ClientName=None, GenerateSecret=None, RefreshTokenValidity=None, ReadAttributes=None, WriteAttributes=None, ExplicitAuthFlows=None, SupportedIdentityProviders=None, CallbackURLs=None, LogoutURLs=None, DefaultRedirectURI=None, AllowedOAuthFlows=None, AllowedOAuthScopes=None, ...
Updates the specified user pool with the specified attributes. See also: AWS API Documentation: example: response = client. update_user_pool ( UserPoolId = string Policies = { PasswordPolicy: { MinimumLength: 123 RequireUppercase: True|False RequireLowercase: True|False RequireNumbers: True|False RequireSymbols: True|F...
def update_user_pool(UserPoolId=None, Policies=None, LambdaConfig=None, AutoVerifiedAttributes=None, SmsVerificationMessage=None, EmailVerificationMessage=None, EmailVerificationSubject=None, SmsAuthenticationMessage=None, MfaConfiguration=None, DeviceConfiguration=None, EmailConfiguration=None, SmsConfiguration=None, ...
Allows the developer to update the specified user pool client and password policy. See also: AWS API Documentation: example: response = client. update_user_pool_client ( UserPoolId = string ClientId = string ClientName = string RefreshTokenValidity = 123 ReadAttributes = [ string ] WriteAttributes = [ string ] Explicit...
def update_user_pool_client(UserPoolId=None, ClientId=None, ClientName=None, RefreshTokenValidity=None, ReadAttributes=None, WriteAttributes=None, ExplicitAuthFlows=None, SupportedIdentityProviders=None, CallbackURLs=None, LogoutURLs=None, DefaultRedirectURI=None, AllowedOAuthFlows=None, AllowedOAuthScopes=None, Allowe...
Creates a copy of an object that is already stored in Amazon S3. See also: AWS API Documentation: example: response = client. copy_object ( ACL = private | public - read | public - read - write | authenticated - read | aws - exec - read | bucket - owner - read | bucket - owner - full - control Bucket = string CacheCont...
def copy_object(ACL=None, Bucket=None, CacheControl=None, ContentDisposition=None, ContentEncoding=None, ContentLanguage=None, ContentType=None, CopySource=None, CopySourceIfMatch=None, CopySourceIfModifiedSince=None, CopySourceIfNoneMatch=None, CopySourceIfUnmodifiedSince=None, Expires=None, GrantFullControl=None, Gra...
Initiates a multipart upload and returns an upload ID. Note: After you initiate multipart upload and upload one or more parts you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload Amazon S3 frees up...
def create_multipart_upload(ACL=None, Bucket=None, CacheControl=None, ContentDisposition=None, ContentEncoding=None, ContentLanguage=None, ContentType=None, Expires=None, GrantFullControl=None, GrantRead=None, GrantReadACP=None, GrantWriteACP=None, Key=None, Metadata=None, ServerSideEncryption=None, StorageClass=None, ...
Retrieves objects from Amazon S3. See also: AWS API Documentation: example: response = client. get_object ( Bucket = string IfMatch = string IfModifiedSince = datetime ( 2015 1 1 ) IfNoneMatch = string IfUnmodifiedSince = datetime ( 2015 1 1 ) Key = string Range = string ResponseCacheControl = string ResponseContentDis...
def get_object(Bucket=None, IfMatch=None, IfModifiedSince=None, IfNoneMatch=None, IfUnmodifiedSince=None, Key=None, Range=None, ResponseCacheControl=None, ResponseContentDisposition=None, ResponseContentEncoding=None, ResponseContentLanguage=None, ResponseContentType=None, ResponseExpires=None, VersionId=None, SSECusto...
The HEAD operation retrieves metadata from an object without returning the object itself. This operation is useful if you re only interested in an object s metadata. To use HEAD you must have READ access to the object. See also: AWS API Documentation: example: response = client. head_object ( Bucket = string IfMatch = ...
def head_object(Bucket=None, IfMatch=None, IfModifiedSince=None, IfNoneMatch=None, IfUnmodifiedSince=None, Key=None, Range=None, VersionId=None, SSECustomerAlgorithm=None, SSECustomerKey=None, SSECustomerKeyMD5=None, RequestPayer=None, PartNumber=None): """ The HEAD operation retrieves metadata from an object w...
Returns some or all ( up to 1000 ) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend you use this revised API for new application development. See also: AWS API Document...
def list_objects_v2(Bucket=None, Delimiter=None, EncodingType=None, MaxKeys=None, Prefix=None, ContinuationToken=None, FetchOwner=None, StartAfter=None, RequestPayer=None): """ Returns some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subse...
Adds an object to a bucket. See also: AWS API Documentation: example: response = client. put_object ( ACL = private | public - read | public - read - write | authenticated - read | aws - exec - read | bucket - owner - read | bucket - owner - full - control Body = b bytes |file Bucket = string CacheControl = string Cont...
def put_object(ACL=None, Body=None, Bucket=None, CacheControl=None, ContentDisposition=None, ContentEncoding=None, ContentLanguage=None, ContentLength=None, ContentMD5=None, ContentType=None, Expires=None, GrantFullControl=None, GrantRead=None, GrantReadACP=None, GrantWriteACP=None, Key=None, Metadata=None, ServerSideE...
uses the acl subresource to set the access control list ( ACL ) permissions for an object that already exists in a bucket See also: AWS API Documentation: example: response = client. put_object_acl ( ACL = private | public - read | public - read - write | authenticated - read | aws - exec - read | bucket - owner - read...
def put_object_acl(ACL=None, AccessControlPolicy=None, Bucket=None, GrantFullControl=None, GrantRead=None, GrantReadACP=None, GrantWrite=None, GrantWriteACP=None, Key=None, RequestPayer=None, VersionId=None): """ uses the acl subresource to set the access control list (ACL) permissions for an object that alread...
Uploads a part in a multipart upload. Note: After you initiate multipart upload and upload one or more parts you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload Amazon S3 frees up the parts storag...
def upload_part(Body=None, Bucket=None, ContentLength=None, ContentMD5=None, Key=None, PartNumber=None, UploadId=None, SSECustomerAlgorithm=None, SSECustomerKey=None, SSECustomerKeyMD5=None, RequestPayer=None): """ Uploads a part in a multipart upload. Note: After you initiate multipart upload and upload on...
Uploads a part by copying data from an existing object as data source. See also: AWS API Documentation: example: response = client. upload_part_copy ( Bucket = string CopySource = string or { Bucket: string Key: string VersionId: string } CopySourceIfMatch = string CopySourceIfModifiedSince = datetime ( 2015 1 1 ) Copy...
def upload_part_copy(Bucket=None, CopySource=None, CopySourceIfMatch=None, CopySourceIfModifiedSince=None, CopySourceIfNoneMatch=None, CopySourceIfUnmodifiedSince=None, CopySourceRange=None, Key=None, PartNumber=None, UploadId=None, SSECustomerAlgorithm=None, SSECustomerKey=None, SSECustomerKeyMD5=None, CopySourceSSECu...
[ EC2 - VPC only ] Adds one or more egress rules to a security group for use with a VPC. Specifically this action permits instances to send traffic to one or more destination IPv4 or IPv6 CIDR address ranges or to one or more destination security groups for the same VPC. This action doesn t apply to security groups for...
def authorize_security_group_egress(DryRun=None, GroupId=None, SourceSecurityGroupName=None, SourceSecurityGroupOwnerId=None, IpProtocol=None, FromPort=None, ToPort=None, CidrIp=None, IpPermissions=None): """ [EC2-VPC only] Adds one or more egress rules to a security group for use with a VPC. Specifically, this...
Adds one or more ingress rules to a security group. Rule changes are propagated to instances within the security group as quickly as possible. However a small delay might occur. [ EC2 - Classic ] This action gives one or more IPv4 CIDR address ranges permission to access a security group in your account or gives one or...
def authorize_security_group_ingress(DryRun=None, GroupName=None, GroupId=None, SourceSecurityGroupName=None, SourceSecurityGroupOwnerId=None, IpProtocol=None, FromPort=None, ToPort=None, CidrIp=None, IpPermissions=None): """ Adds one or more ingress rules to a security group. Rule changes are propagated to...
Creates a network interface in the specified subnet. For more information about network interfaces see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide. See also: AWS API Documentation Examples This example creates a network interface for the specified subnet. Expected Output:: example: respons...
def create_network_interface(SubnetId=None, Description=None, PrivateIpAddress=None, Groups=None, PrivateIpAddresses=None, SecondaryPrivateIpAddressCount=None, Ipv6Addresses=None, Ipv6AddressCount=None, DryRun=None): """ Creates a network interface in the specified subnet. For more information about network...
Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints. You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace produ...
def create_volume(DryRun=None, Size=None, SnapshotId=None, AvailabilityZone=None, VolumeType=None, Iops=None, Encrypted=None, KmsKeyId=None, TagSpecifications=None): """ Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that y...
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances you purchase the right to launch instances for a period of time. During that time period you do not receive insufficient capacity errors and you pay a lower usage rate than the rate charged for On - Demand instances for the a...
def describe_reserved_instances_offerings(DryRun=None, ReservedInstancesOfferingIds=None, InstanceType=None, AvailabilityZone=None, ProductDescription=None, Filters=None, InstanceTenancy=None, OfferingType=None, NextToken=None, MaxResults=None, IncludeMarketplace=None, MinDuration=None, MaxDuration=None, MaxInstanceCou...
Describes the Spot price history. For more information see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide. When you specify a start and end time this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price i...
def describe_spot_price_history(DryRun=None, StartTime=None, EndTime=None, InstanceTypes=None, ProductDescriptions=None, Filters=None, AvailabilityZone=None, MaxResults=None, NextToken=None): """ Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon Elastic Comp...
Import single or multi - volume disk images or EBS snapshots into an Amazon Machine Image ( AMI ). For more information see Importing a VM as an Image Using VM Import/ Export in the VM Import/ Export User Guide. See also: AWS API Documentation: example: response = client. import_image ( DryRun = True|False Description ...
def import_image(DryRun=None, Description=None, DiskContainers=None, LicenseType=None, Hypervisor=None, Architecture=None, Platform=None, ClientData=None, ClientToken=None, RoleName=None): """ Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, se...
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. See also: AWS API Documentation: example: response = client. modify_image_attribute ( DryRun = True|False ImageId = string Attribute = string OperationType = add | remove UserIds = [ string ] UserGroups = [ string ] Pro...
def modify_image_attribute(DryRun=None, ImageId=None, Attribute=None, OperationType=None, UserIds=None, UserGroups=None, ProductCodes=None, Value=None, LaunchPermission=None, Description=None): """ Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. See also:...
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time. To modify some attributes the instance must be stopped. For more information see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide. See also: AWS API Documentation: example: ...
def modify_instance_attribute(DryRun=None, InstanceId=None, Attribute=None, Value=None, BlockDeviceMappings=None, SourceDestCheck=None, DisableApiTermination=None, InstanceType=None, Kernel=None, Ramdisk=None, UserData=None, InstanceInitiatedShutdownBehavior=None, Groups=None, EbsOptimized=None, SriovNetSupport=None, E...
Registers an AMI. When you re creating an AMI this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide. You can also use RegisterImage to create an Amazon EBS - backed Linux...
def register_image(DryRun=None, ImageLocation=None, Name=None, Description=None, Architecture=None, KernelId=None, RamdiskId=None, BillingProducts=None, RootDeviceName=None, BlockDeviceMappings=None, VirtualizationType=None, SriovNetSupport=None, EnaSupport=None): """ Registers an AMI. When you're creating an A...
Replaces an entry ( rule ) in a network ACL. For more information about network ACLs see Network ACLs in the Amazon Virtual Private Cloud User Guide. See also: AWS API Documentation Examples This example replaces an entry for the specified network ACL. The new rule 100 allows ingress traffic from 203. 0. 113. 12/ 24 on...
def replace_network_acl_entry(DryRun=None, NetworkAclId=None, RuleNumber=None, Protocol=None, RuleAction=None, Egress=None, CidrBlock=None, Ipv6CidrBlock=None, IcmpTypeCode=None, PortRange=None): """ Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amaz...
Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway NAT instance NAT gateway VPC peering connection network interface or egress - only Internet gateway. For more information about route tables see Route Tables in the Amazon Vi...
def replace_route(DryRun=None, RouteTableId=None, DestinationCidrBlock=None, GatewayId=None, DestinationIpv6CidrBlock=None, EgressOnlyInternetGatewayId=None, InstanceId=None, NetworkInterfaceId=None, VpcPeeringConnectionId=None, NatGatewayId=None): """ Replaces an existing route within a route table in a VPC. Y...
Creates a Spot instance request. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot Instance capacity and current Spot instance requests. For more information see Spot Instance Requ...
def request_spot_instances(DryRun=None, SpotPrice=None, ClientToken=None, InstanceCount=None, Type=None, ValidFrom=None, ValidUntil=None, LaunchGroup=None, AvailabilityZoneGroup=None, BlockDurationMinutes=None, LaunchSpecification=None): """ Creates a Spot instance request. Spot instances are instances that Ama...
Launches the specified number of instances using an AMI for which you have permissions. You can specify a number of options or leave the default options. The following rules apply: To ensure faster instance launches break up large requests into smaller batches. For example create 5 separate launch requests for 100 inst...
def run_instances(DryRun=None, ImageId=None, MinCount=None, MaxCount=None, KeyName=None, SecurityGroups=None, SecurityGroupIds=None, UserData=None, InstanceType=None, Placement=None, KernelId=None, RamdiskId=None, BlockDeviceMappings=None, Monitoring=None, SubnetId=None, DisableApiTermination=None, InstanceInitiatedShu...
Launches an environment for the specified application using the specified configuration. See also: AWS API Documentation Examples The following operation creates a new environment for version v1 of a java application named my - app: Expected Output:: example: response = client. create_environment ( ApplicationName = st...
def create_environment(ApplicationName=None, EnvironmentName=None, GroupName=None, Description=None, CNAMEPrefix=None, Tier=None, Tags=None, VersionLabel=None, TemplateName=None, SolutionStackName=None, PlatformArn=None, OptionSettings=None, OptionsToRemove=None): """ Launches an environment for the specified a...
Returns list of event descriptions matching criteria up to the last 6 weeks. See also: AWS API Documentation Examples The following operation retrieves events for an environment named my - env: Expected Output:: example: response = client. describe_events ( ApplicationName = string VersionLabel = string TemplateName = ...
def describe_events(ApplicationName=None, VersionLabel=None, TemplateName=None, EnvironmentId=None, EnvironmentName=None, PlatformArn=None, RequestId=None, Severity=None, StartTime=None, EndTime=None, MaxRecords=None, NextToken=None): """ Returns list of event descriptions matching criteria up to the last 6 wee...
Updates the environment description deploys a new application version updates the configuration settings to an entirely new configuration template or updates select configuration option values in the running environment. Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk re...
def update_environment(ApplicationName=None, EnvironmentId=None, EnvironmentName=None, GroupName=None, Description=None, Tier=None, VersionLabel=None, TemplateName=None, SolutionStackName=None, PlatformArn=None, OptionSettings=None, OptionsToRemove=None): """ Updates the environment description, deploys a new a...
Creates a new Lambda function. The function metadata is created from the request parameters and the code for the function is provided by a. zip file in the request body. If the function name already exists the operation will fail. Note that the function name is case - sensitive. If you are using versioning you can also...
def create_function(FunctionName=None, Runtime=None, Role=None, Handler=None, Code=None, Description=None, Timeout=None, MemorySize=None, Publish=None, VpcConfig=None, DeadLetterConfig=None, Environment=None, KMSKeyArn=None, TracingConfig=None, Tags=None): """ Creates a new Lambda function. The function metadat...
Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function s code. If you are using the versioning featur...
def update_function_configuration(FunctionName=None, Role=None, Handler=None, Description=None, Timeout=None, MemorySize=None, VpcConfig=None, Environment=None, Runtime=None, DeadLetterConfig=None, KMSKeyArn=None, TracingConfig=None): """ Updates the configuration parameters for the specified Lambda function by...
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. A maximum of five trails can exist in a region irrespective of the region in which they were created. See also: AWS API Documentation: example: response = client. create_trail ( Name = string S3BucketName = string S3KeyPrefix =...
def create_trail(Name=None, S3BucketName=None, S3KeyPrefix=None, SnsTopicName=None, IncludeGlobalServiceEvents=None, IsMultiRegionTrail=None, EnableLogFileValidation=None, CloudWatchLogsLogGroupArn=None, CloudWatchLogsRoleArn=None, KmsKeyId=None): """ Creates a trail that specifies the settings for delivery of ...