repository_name stringlengths 7 55 | func_path_in_repository stringlengths 4 223 | func_name stringlengths 1 134 | whole_func_string stringlengths 75 104k | language stringclasses 1
value | func_code_string stringlengths 75 104k | func_code_tokens listlengths 19 28.4k | func_documentation_string stringlengths 1 46.9k | func_documentation_tokens listlengths 1 1.97k | split_name stringclasses 1
value | func_code_url stringlengths 87 315 |
|---|---|---|---|---|---|---|---|---|---|---|
wavycloud/pyboto3 | pyboto3/iam.py | update_account_password_policy | 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... | python | 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... | [
"def",
"update_account_password_policy",
"(",
"MinimumPasswordLength",
"=",
"None",
",",
"RequireSymbols",
"=",
"None",
",",
"RequireNumbers",
"=",
"None",
",",
"RequireUppercaseCharacters",
"=",
"None",
",",
"RequireLowercaseCharacters",
"=",
"None",
",",
"AllowUsersTo... | 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 char... | [
"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",
"."... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4640-L4718 |
wavycloud/pyboto3 | pyboto3/devicefarm.py | create_network_profile | 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... | python | 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... | [
"def",
"create_network_profile",
"(",
"projectArn",
"=",
"None",
",",
"name",
"=",
"None",
",",
"description",
"=",
"None",
",",
"type",
"=",
"None",
",",
"uplinkBandwidthBits",
"=",
"None",
",",
"downlinkBandwidthBits",
"=",
"None",
",",
"uplinkDelayMs",
"=",... | 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,
... | [
"Creates",
"a",
"network",
"profile",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_network_profile",
"(",
"projectArn",
"=",
"string",
"name",
"=",
"string",
"description",
"=",
"string",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/devicefarm.py#L126-L208 |
wavycloud/pyboto3 | pyboto3/devicefarm.py | update_network_profile | 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... | python | 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... | [
"def",
"update_network_profile",
"(",
"arn",
"=",
"None",
",",
"name",
"=",
"None",
",",
"description",
"=",
"None",
",",
"type",
"=",
"None",
",",
"uplinkBandwidthBits",
"=",
"None",
",",
"downlinkBandwidthBits",
"=",
"None",
",",
"uplinkDelayMs",
"=",
"Non... | 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,
downlinkBandwidt... | [
"Updates",
"the",
"network",
"profile",
"with",
"specific",
"settings",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_network_profile",
"(",
"arn",
"=",
"string",
"name",
"=",
"string",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/devicefarm.py#L3221-L3301 |
wavycloud/pyboto3 | pyboto3/importexport.py | get_shipping_label | 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... | python | 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... | [
"def",
"get_shipping_label",
"(",
"jobIds",
"=",
"None",
",",
"name",
"=",
"None",
",",
"company",
"=",
"None",
",",
"phoneNumber",
"=",
"None",
",",
"country",
"=",
"None",
",",
"stateOrProvince",
"=",
"None",
",",
"city",
"=",
"None",
",",
"postalCode"... | 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',
... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/importexport.py#L180-L257 |
wavycloud/pyboto3 | pyboto3/apigateway.py | create_authorizer | 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 ... | python | 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 ... | [
"def",
"create_authorizer",
"(",
"restApiId",
"=",
"None",
",",
"name",
"=",
"None",
",",
"type",
"=",
"None",
",",
"providerARNs",
"=",
"None",
",",
"authType",
"=",
"None",
",",
"authorizerUri",
"=",
"None",
",",
"authorizerCredentials",
"=",
"None",
","... | 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',
],
... | [
"Adds",
"a",
"new",
"Authorizer",
"resource",
"to",
"an",
"existing",
"RestApi",
"resource",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_authorizer",
"(",
"restApiId",
"=",
"string",
"n... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L112-L195 |
wavycloud/pyboto3 | pyboto3/apigateway.py | put_integration | 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.... | python | 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.... | [
"def",
"put_integration",
"(",
"restApiId",
"=",
"None",
",",
"resourceId",
"=",
"None",
",",
"httpMethod",
"=",
"None",
",",
"type",
"=",
"None",
",",
"integrationHttpMethod",
"=",
"None",
",",
"uri",
"=",
"None",
",",
"credentials",
"=",
"None",
",",
"... | 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',
ur... | [
"Represents",
"a",
"put",
"integration",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"put_integration",
"(",
"restApiId",
"=",
"string",
"resourceId",
"=",
"string",
"httpMethod",
"=",
"string",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L3668-L3801 |
wavycloud/pyboto3 | pyboto3/apigateway.py | put_method | 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
... | python | 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
... | [
"def",
"put_method",
"(",
"restApiId",
"=",
"None",
",",
"resourceId",
"=",
"None",
",",
"httpMethod",
"=",
"None",
",",
"authorizationType",
"=",
"None",
",",
"authorizerId",
"=",
"None",
",",
"apiKeyRequired",
"=",
"None",
",",
"operationName",
"=",
"None"... | 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|F... | [
"Add",
"a",
"method",
"to",
"an",
"existing",
"Resource",
"resource",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"put_method",
"(",
"restApiId",
"=",
"string",
"resourceId",
"=",
"string",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L3890-L4024 |
wavycloud/pyboto3 | pyboto3/workdocs.py | describe_users | 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 ... | python | 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 ... | [
"def",
"describe_users",
"(",
"OrganizationId",
"=",
"None",
",",
"UserIds",
"=",
"None",
",",
"Query",
"=",
"None",
",",
"Include",
"=",
"None",
",",
"Order",
"=",
"None",
",",
"Sort",
"=",
"None",
",",
"Marker",
"=",
"None",
",",
"Limit",
"=",
"Non... | 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 a... | [
"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"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/workdocs.py#L704-L784 |
wavycloud/pyboto3 | pyboto3/cloudformation.py | create_change_set | 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 ... | python | 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 ... | [
"def",
"create_change_set",
"(",
"StackName",
"=",
"None",
",",
"TemplateBody",
"=",
"None",
",",
"TemplateURL",
"=",
"None",
",",
"UsePreviousTemplate",
"=",
"None",
",",
"Parameters",
"=",
"None",
",",
"Capabilities",
"=",
"None",
",",
"ResourceTypes",
"=",
... | 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 CloudFormatio... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L123-L253 |
wavycloud/pyboto3 | pyboto3/cloudformation.py | create_stack | 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... | python | 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... | [
"def",
"create_stack",
"(",
"StackName",
"=",
"None",
",",
"TemplateBody",
"=",
"None",
",",
"TemplateURL",
"=",
"None",
",",
"Parameters",
"=",
"None",
",",
"DisableRollback",
"=",
"None",
",",
"TimeoutInMinutes",
"=",
"None",
",",
"NotificationARNs",
"=",
... | 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=... | [
"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",
"DescribeSta... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L255-L386 |
wavycloud/pyboto3 | pyboto3/cloudformation.py | update_stack | 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... | python | 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... | [
"def",
"update_stack",
"(",
"StackName",
"=",
"None",
",",
"TemplateBody",
"=",
"None",
",",
"TemplateURL",
"=",
"None",
",",
"UsePreviousTemplate",
"=",
"None",
",",
"StackPolicyDuringUpdateBody",
"=",
"None",
",",
"StackPolicyDuringUpdateURL",
"=",
"None",
",",
... | 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 upd... | [
"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",
"DescribeStack... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L1319-L1460 |
wavycloud/pyboto3 | pyboto3/support.py | create_case | 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 ... | python | 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 ... | [
"def",
"create_case",
"(",
"subject",
"=",
"None",
",",
"serviceCode",
"=",
"None",
",",
"severityCode",
"=",
"None",
",",
"categoryCode",
"=",
"None",
",",
"communicationBody",
"=",
"None",
",",
"ccEmailAddresses",
"=",
"None",
",",
"language",
"=",
"None",... | 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 operat... | [
"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",... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/support.py#L125-L214 |
wavycloud/pyboto3 | pyboto3/support.py | describe_cases | 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... | python | 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... | [
"def",
"describe_cases",
"(",
"caseIdList",
"=",
"None",
",",
"displayId",
"=",
"None",
",",
"afterTime",
"=",
"None",
",",
"beforeTime",
"=",
"None",
",",
"includeResolvedCases",
"=",
"None",
",",
"nextToken",
"=",
"None",
",",
"maxResults",
"=",
"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 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 r... | [
"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"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/support.py#L244-L352 |
wavycloud/pyboto3 | pyboto3/cognitoidentityprovider.py | create_user_pool | 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... | python | 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... | [
"def",
"create_user_pool",
"(",
"PoolName",
"=",
"None",
",",
"Policies",
"=",
"None",
",",
"LambdaConfig",
"=",
"None",
",",
"AutoVerifiedAttributes",
"=",
"None",
",",
"AliasAttributes",
"=",
"None",
",",
"SmsVerificationMessage",
"=",
"None",
",",
"EmailVerif... | 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,
'RequireUp... | [
"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",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L1411-L1688 |
wavycloud/pyboto3 | pyboto3/cognitoidentityprovider.py | create_user_pool_client | 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, ... | python | 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, ... | [
"def",
"create_user_pool_client",
"(",
"UserPoolId",
"=",
"None",
",",
"ClientName",
"=",
"None",
",",
"GenerateSecret",
"=",
"None",
",",
"RefreshTokenValidity",
"=",
"None",
",",
"ReadAttributes",
"=",
"None",
",",
"WriteAttributes",
"=",
"None",
",",
"Explici... | 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',
],
... | [
"Creates",
"the",
"user",
"pool",
"client",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_user_pool_client",
"(",
"UserPoolId",
"=",
"string",
"ClientName",
"=",
"string",
"GenerateSecret",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L1690-L1837 |
wavycloud/pyboto3 | pyboto3/cognitoidentityprovider.py | update_user_pool | 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, ... | python | 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, ... | [
"def",
"update_user_pool",
"(",
"UserPoolId",
"=",
"None",
",",
"Policies",
"=",
"None",
",",
"LambdaConfig",
"=",
"None",
",",
"AutoVerifiedAttributes",
"=",
"None",
",",
"SmsVerificationMessage",
"=",
"None",
",",
"EmailVerificationMessage",
"=",
"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|Fa... | [
"Updates",
"the",
"specified",
"user",
"pool",
"with",
"the",
"specified",
"attributes",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_user_pool",
"(",
"UserPoolId",
"=",
"string",
"Policie... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L3792-L3946 |
wavycloud/pyboto3 | pyboto3/cognitoidentityprovider.py | update_user_pool_client | 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... | python | 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... | [
"def",
"update_user_pool_client",
"(",
"UserPoolId",
"=",
"None",
",",
"ClientId",
"=",
"None",
",",
"ClientName",
"=",
"None",
",",
"RefreshTokenValidity",
"=",
"None",
",",
"ReadAttributes",
"=",
"None",
",",
"WriteAttributes",
"=",
"None",
",",
"ExplicitAuthF... | 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,
ReadAtt... | [
"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",
"("... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L3948-L4095 |
wavycloud/pyboto3 | pyboto3/s3.py | copy_object | 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... | python | 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... | [
"def",
"copy_object",
"(",
"ACL",
"=",
"None",
",",
"Bucket",
"=",
"None",
",",
"CacheControl",
"=",
"None",
",",
"ContentDisposition",
"=",
"None",
",",
"ContentEncoding",
"=",
"None",
",",
"ContentLanguage",
"=",
"None",
",",
"ContentType",
"=",
"None",
... | 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... | [
"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",... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L209-L390 |
wavycloud/pyboto3 | pyboto3/s3.py | create_multipart_upload | 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, ... | python | 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, ... | [
"def",
"create_multipart_upload",
"(",
"ACL",
"=",
"None",
",",
"Bucket",
"=",
"None",
",",
"CacheControl",
"=",
"None",
",",
"ContentDisposition",
"=",
"None",
",",
"ContentEncoding",
"=",
"None",
",",
"ContentLanguage",
"=",
"None",
",",
"ContentType",
"=",
... | 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 fr... | [
"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",
"multipar... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L453-L587 |
wavycloud/pyboto3 | pyboto3/s3.py | get_object | 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... | python | 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... | [
"def",
"get_object",
"(",
"Bucket",
"=",
"None",
",",
"IfMatch",
"=",
"None",
",",
"IfModifiedSince",
"=",
"None",
",",
"IfNoneMatch",
"=",
"None",
",",
"IfUnmodifiedSince",
"=",
"None",
",",
"Key",
"=",
"None",
",",
"Range",
"=",
"None",
",",
"ResponseC... | 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',... | [
"Retrieves",
"objects",
"from",
"Amazon",
"S3",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"get_object",
"(",
"Bucket",
"=",
"string",
"IfMatch",
"=",
"string",
"IfModifiedSince",
"=",
"dateti... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L1927-L2087 |
wavycloud/pyboto3 | pyboto3/s3.py | head_object | 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... | python | 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... | [
"def",
"head_object",
"(",
"Bucket",
"=",
"None",
",",
"IfMatch",
"=",
"None",
",",
"IfModifiedSince",
"=",
"None",
",",
"IfNoneMatch",
"=",
"None",
",",
"IfUnmodifiedSince",
"=",
"None",
",",
"Key",
"=",
"None",
",",
"Range",
"=",
"None",
",",
"VersionI... | 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(
B... | [
"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... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L2295-L2425 |
wavycloud/pyboto3 | pyboto3/s3.py | list_objects_v2 | 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... | python | 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... | [
"def",
"list_objects_v2",
"(",
"Bucket",
"=",
"None",
",",
"Delimiter",
"=",
"None",
",",
"EncodingType",
"=",
"None",
",",
"MaxKeys",
"=",
"None",
",",
"Prefix",
"=",
"None",
",",
"ContinuationToken",
"=",
"None",
",",
"FetchOwner",
"=",
"None",
",",
"S... | 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 Docume... | [
"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",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L3118-L3236 |
wavycloud/pyboto3 | pyboto3/s3.py | put_object | 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... | python | 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... | [
"def",
"put_object",
"(",
"ACL",
"=",
"None",
",",
"Body",
"=",
"None",
",",
"Bucket",
"=",
"None",
",",
"CacheControl",
"=",
"None",
",",
"ContentDisposition",
"=",
"None",
",",
"ContentEncoding",
"=",
"None",
",",
"ContentLanguage",
"=",
"None",
",",
"... | 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',
... | [
"Adds",
"an",
"object",
"to",
"a",
"bucket",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"put_object",
"(",
"ACL",
"=",
"private",
"|",
"public",
"-",
"read",
"|",
"public",
"-",
"read",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L4347-L4492 |
wavycloud/pyboto3 | pyboto3/s3.py | put_object_acl | 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... | python | 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... | [
"def",
"put_object_acl",
"(",
"ACL",
"=",
"None",
",",
"AccessControlPolicy",
"=",
"None",
",",
"Bucket",
"=",
"None",
",",
"GrantFullControl",
"=",
"None",
",",
"GrantRead",
"=",
"None",
",",
"GrantReadACP",
"=",
"None",
",",
"GrantWrite",
"=",
"None",
",... | 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... | [
"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"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L4494-L4592 |
wavycloud/pyboto3 | pyboto3/s3.py | upload_part | 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... | python | 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... | [
"def",
"upload_part",
"(",
"Body",
"=",
"None",
",",
"Bucket",
"=",
"None",
",",
"ContentLength",
"=",
"None",
",",
"ContentMD5",
"=",
"None",
",",
"Key",
"=",
"None",
",",
"PartNumber",
"=",
"None",
",",
"UploadId",
"=",
"None",
",",
"SSECustomerAlgorit... | 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 ... | [
"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",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L4762-L4839 |
wavycloud/pyboto3 | pyboto3/s3.py | upload_part_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... | python | 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... | [
"def",
"upload_part_copy",
"(",
"Bucket",
"=",
"None",
",",
"CopySource",
"=",
"None",
",",
"CopySourceIfMatch",
"=",
"None",
",",
"CopySourceIfModifiedSince",
"=",
"None",
",",
"CopySourceIfNoneMatch",
"=",
"None",
",",
"CopySourceIfUnmodifiedSince",
"=",
"None",
... | 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',... | [
"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",
"="... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L4841-L4949 |
wavycloud/pyboto3 | pyboto3/ec2.py | authorize_security_group_egress | 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... | python | 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... | [
"def",
"authorize_security_group_egress",
"(",
"DryRun",
"=",
"None",
",",
"GroupId",
"=",
"None",
",",
"SourceSecurityGroupName",
"=",
"None",
",",
"SourceSecurityGroupOwnerId",
"=",
"None",
",",
"IpProtocol",
"=",
"None",
",",
"FromPort",
"=",
"None",
",",
"To... | [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 u... | [
"[",
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L823-L934 |
wavycloud/pyboto3 | pyboto3/ec2.py | authorize_security_group_ingress | 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... | python | 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... | [
"def",
"authorize_security_group_ingress",
"(",
"DryRun",
"=",
"None",
",",
"GroupName",
"=",
"None",
",",
"GroupId",
"=",
"None",
",",
"SourceSecurityGroupName",
"=",
"None",
",",
"SourceSecurityGroupOwnerId",
"=",
"None",
",",
"IpProtocol",
"=",
"None",
",",
"... | 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 ... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L936-L1050 |
wavycloud/pyboto3 | pyboto3/ec2.py | create_network_interface | 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... | python | 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... | [
"def",
"create_network_interface",
"(",
"SubnetId",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"PrivateIpAddress",
"=",
"None",
",",
"Groups",
"=",
"None",
",",
"PrivateIpAddresses",
"=",
"None",
",",
"SecondaryPrivateIpAddressCount",
"=",
"None",
",",
"... | 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.
Expecte... | [
"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",
"."... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L2362-L2507 |
wavycloud/pyboto3 | pyboto3/ec2.py | create_volume | 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... | python | 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... | [
"def",
"create_volume",
"(",
"DryRun",
"=",
"None",
",",
"Size",
"=",
"None",
",",
"SnapshotId",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"VolumeType",
"=",
"None",
",",
"Iops",
"=",
"None",
",",
"Encrypted",
"=",
"None",
",",
"KmsKeyId",
... | 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 ... | [
"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",
"reque... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L3090-L3207 |
wavycloud/pyboto3 | pyboto3/ec2.py | describe_reserved_instances_offerings | 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... | python | 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... | [
"def",
"describe_reserved_instances_offerings",
"(",
"DryRun",
"=",
"None",
",",
"ReservedInstancesOfferingIds",
"=",
"None",
",",
"InstanceType",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"ProductDescription",
"=",
"None",
",",
"Filters",
"=",
"None",... | 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 ... | [
"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",
"t... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L7625-L7770 |
wavycloud/pyboto3 | pyboto3/ec2.py | describe_spot_price_history | 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... | python | 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... | [
"def",
"describe_spot_price_history",
"(",
"DryRun",
"=",
"None",
",",
"StartTime",
"=",
"None",
",",
"EndTime",
"=",
"None",
",",
"InstanceTypes",
"=",
"None",
",",
"ProductDescriptions",
"=",
"None",
",",
"Filters",
"=",
"None",
",",
"AvailabilityZone",
"=",... | 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 ... | [
"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",
"en... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L9025-L9117 |
wavycloud/pyboto3 | pyboto3/ec2.py | import_image | 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... | python | 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... | [
"def",
"import_image",
"(",
"DryRun",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"DiskContainers",
"=",
"None",
",",
"LicenseType",
"=",
"None",
",",
"Hypervisor",
"=",
"None",
",",
"Architecture",
"=",
"None",
",",
"Platform",
"=",
"None",
",",
... | 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|... | [
"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... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L11204-L11330 |
wavycloud/pyboto3 | pyboto3/ec2.py | modify_image_attribute | 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:... | python | 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:... | [
"def",
"modify_image_attribute",
"(",
"DryRun",
"=",
"None",
",",
"ImageId",
"=",
"None",
",",
"Attribute",
"=",
"None",
",",
"OperationType",
"=",
"None",
",",
"UserIds",
"=",
"None",
",",
"UserGroups",
"=",
"None",
",",
"ProductCodes",
"=",
"None",
",",
... | 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'... | [
"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... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L11829-L11922 |
wavycloud/pyboto3 | pyboto3/ec2.py | modify_instance_attribute | 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... | python | 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... | [
"def",
"modify_instance_attribute",
"(",
"DryRun",
"=",
"None",
",",
"InstanceId",
"=",
"None",
",",
"Attribute",
"=",
"None",
",",
"Value",
"=",
"None",
",",
"BlockDeviceMappings",
"=",
"None",
",",
"SourceDestCheck",
"=",
"None",
",",
"DisableApiTermination",
... | 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... | [
"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",... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L11924-L12069 |
wavycloud/pyboto3 | pyboto3/ec2.py | register_image | 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... | python | 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... | [
"def",
"register_image",
"(",
"DryRun",
"=",
"None",
",",
"ImageLocation",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Architecture",
"=",
"None",
",",
"KernelId",
"=",
"None",
",",
"RamdiskId",
"=",
"None",
",",
"Billin... | 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 ... | [
"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",
"ab... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L13024-L13146 |
wavycloud/pyboto3 | pyboto3/ec2.py | replace_network_acl_entry | 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... | python | 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... | [
"def",
"replace_network_acl_entry",
"(",
"DryRun",
"=",
"None",
",",
"NetworkAclId",
"=",
"None",
",",
"RuleNumber",
"=",
"None",
",",
"Protocol",
"=",
"None",
",",
"RuleAction",
"=",
"None",
",",
"Egress",
"=",
"None",
",",
"CidrBlock",
"=",
"None",
",",
... | 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... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L13345-L13438 |
wavycloud/pyboto3 | pyboto3/ec2.py | replace_route | 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... | python | 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... | [
"def",
"replace_route",
"(",
"DryRun",
"=",
"None",
",",
"RouteTableId",
"=",
"None",
",",
"DestinationCidrBlock",
"=",
"None",
",",
"GatewayId",
"=",
"None",
",",
"DestinationIpv6CidrBlock",
"=",
"None",
",",
"EgressOnlyInternetGatewayId",
"=",
"None",
",",
"In... | 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 A... | [
"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",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L13440-L13506 |
wavycloud/pyboto3 | pyboto3/ec2.py | request_spot_instances | 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... | python | 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... | [
"def",
"request_spot_instances",
"(",
"DryRun",
"=",
"None",
",",
"SpotPrice",
"=",
"None",
",",
"ClientToken",
"=",
"None",
",",
"InstanceCount",
"=",
"None",
",",
"Type",
"=",
"None",
",",
"ValidFrom",
"=",
"None",
",",
"ValidUntil",
"=",
"None",
",",
... | 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 Req... | [
"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",
"pe... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L13826-L14155 |
wavycloud/pyboto3 | pyboto3/ec2.py | run_instances | 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... | python | 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... | [
"def",
"run_instances",
"(",
"DryRun",
"=",
"None",
",",
"ImageId",
"=",
"None",
",",
"MinCount",
"=",
"None",
",",
"MaxCount",
"=",
"None",
",",
"KeyName",
"=",
"None",
",",
"SecurityGroups",
"=",
"None",
",",
"SecurityGroupIds",
"=",
"None",
",",
"User... | 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 f... | [
"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"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ec2.py#L14547-L15213 |
wavycloud/pyboto3 | pyboto3/elasticbeanstalk.py | create_environment | 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... | python | 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... | [
"def",
"create_environment",
"(",
"ApplicationName",
"=",
"None",
",",
"EnvironmentName",
"=",
"None",
",",
"GroupName",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"CNAMEPrefix",
"=",
"None",
",",
"Tier",
"=",
"None",
",",
"Tags",
"=",
"None",
",",... | 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_environ... | [
"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... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticbeanstalk.py#L585-L755 |
wavycloud/pyboto3 | pyboto3/elasticbeanstalk.py | describe_events | 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... | python | 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... | [
"def",
"describe_events",
"(",
"ApplicationName",
"=",
"None",
",",
"VersionLabel",
"=",
"None",
",",
"TemplateName",
"=",
"None",
",",
"EnvironmentId",
"=",
"None",
",",
"EnvironmentName",
"=",
"None",
",",
"PlatformArn",
"=",
"None",
",",
"RequestId",
"=",
... | 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',
... | [
"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",
"environ... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticbeanstalk.py#L1672-L1753 |
wavycloud/pyboto3 | pyboto3/elasticbeanstalk.py | update_environment | 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... | python | 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... | [
"def",
"update_environment",
"(",
"ApplicationName",
"=",
"None",
",",
"EnvironmentId",
"=",
"None",
",",
"EnvironmentName",
"=",
"None",
",",
"GroupName",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Tier",
"=",
"None",
",",
"VersionLabel",
"=",
"Non... | 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 Beans... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticbeanstalk.py#L2729-L2886 |
wavycloud/pyboto3 | pyboto3/lambda_.py | create_function | 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... | python | 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... | [
"def",
"create_function",
"(",
"FunctionName",
"=",
"None",
",",
"Runtime",
"=",
"None",
",",
"Role",
"=",
"None",
",",
"Handler",
"=",
"None",
",",
"Code",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Timeout",
"=",
"None",
",",
"MemorySize",
"... | 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... | [
"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... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lambda_.py#L227-L404 |
wavycloud/pyboto3 | pyboto3/lambda_.py | update_function_configuration | 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... | python | 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... | [
"def",
"update_function_configuration",
"(",
"FunctionName",
"=",
"None",
",",
"Role",
"=",
"None",
",",
"Handler",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Timeout",
"=",
"None",
",",
"MemorySize",
"=",
"None",
",",
"VpcConfig",
"=",
"None",
",... | 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 fe... | [
"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"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lambda_.py#L1613-L1758 |
wavycloud/pyboto3 | pyboto3/cloudtrail.py | create_trail | 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 ... | python | 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 ... | [
"def",
"create_trail",
"(",
"Name",
"=",
"None",
",",
"S3BucketName",
"=",
"None",
",",
"S3KeyPrefix",
"=",
"None",
",",
"SnsTopicName",
"=",
"None",
",",
"IncludeGlobalServiceEvents",
"=",
"None",
",",
"IsMultiRegionTrail",
"=",
"None",
",",
"EnableLogFileValid... | 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',
S... | [
"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",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudtrail.py#L80-L166 |
wavycloud/pyboto3 | pyboto3/redshift.py | create_cluster | def create_cluster(DBName=None, ClusterIdentifier=None, ClusterType=None, NodeType=None, MasterUsername=None, MasterUserPassword=None, ClusterSecurityGroups=None, VpcSecurityGroupIds=None, ClusterSubnetGroupName=None, AvailabilityZone=None, PreferredMaintenanceWindow=None, ClusterParameterGroupName=None, AutomatedSnaps... | python | def create_cluster(DBName=None, ClusterIdentifier=None, ClusterType=None, NodeType=None, MasterUsername=None, MasterUserPassword=None, ClusterSecurityGroups=None, VpcSecurityGroupIds=None, ClusterSubnetGroupName=None, AvailabilityZone=None, PreferredMaintenanceWindow=None, ClusterParameterGroupName=None, AutomatedSnaps... | [
"def",
"create_cluster",
"(",
"DBName",
"=",
"None",
",",
"ClusterIdentifier",
"=",
"None",
",",
"ClusterType",
"=",
"None",
",",
"NodeType",
"=",
"None",
",",
"MasterUsername",
"=",
"None",
",",
"MasterUserPassword",
"=",
"None",
",",
"ClusterSecurityGroups",
... | Creates a new cluster.
To create the cluster in Virtual Private Cloud (VPC), you must provide a cluster subnet group name. The cluster subnet group identifies the subnets of your VPC that Amazon Redshift uses when creating the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in ... | [
"Creates",
"a",
"new",
"cluster",
".",
"To",
"create",
"the",
"cluster",
"in",
"Virtual",
"Private",
"Cloud",
"(",
"VPC",
")",
"you",
"must",
"provide",
"a",
"cluster",
"subnet",
"group",
"name",
".",
"The",
"cluster",
"subnet",
"group",
"identifies",
"the... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/redshift.py#L297-L650 |
wavycloud/pyboto3 | pyboto3/redshift.py | describe_cluster_snapshots | def describe_cluster_snapshots(ClusterIdentifier=None, SnapshotIdentifier=None, SnapshotType=None, StartTime=None, EndTime=None, MaxRecords=None, Marker=None, OwnerAccount=None, TagKeys=None, TagValues=None):
"""
Returns one or more snapshot objects, which contain metadata about your cluster snapshots. By defau... | python | def describe_cluster_snapshots(ClusterIdentifier=None, SnapshotIdentifier=None, SnapshotType=None, StartTime=None, EndTime=None, MaxRecords=None, Marker=None, OwnerAccount=None, TagKeys=None, TagValues=None):
"""
Returns one or more snapshot objects, which contain metadata about your cluster snapshots. By defau... | [
"def",
"describe_cluster_snapshots",
"(",
"ClusterIdentifier",
"=",
"None",
",",
"SnapshotIdentifier",
"=",
"None",
",",
"SnapshotType",
"=",
"None",
",",
"StartTime",
"=",
"None",
",",
"EndTime",
"=",
"None",
",",
"MaxRecords",
"=",
"None",
",",
"Marker",
"="... | Returns one or more snapshot objects, which contain metadata about your cluster snapshots. By default, this operation returns information about all snapshots of all clusters that are owned by you AWS customer account. No information is returned for snapshots owned by inactive AWS customer accounts.
If you specify b... | [
"Returns",
"one",
"or",
"more",
"snapshot",
"objects",
"which",
"contain",
"metadata",
"about",
"your",
"cluster",
"snapshots",
".",
"By",
"default",
"this",
"operation",
"returns",
"information",
"about",
"all",
"snapshots",
"of",
"all",
"clusters",
"that",
"ar... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/redshift.py#L1957-L2083 |
wavycloud/pyboto3 | pyboto3/redshift.py | modify_cluster | def modify_cluster(ClusterIdentifier=None, ClusterType=None, NodeType=None, NumberOfNodes=None, ClusterSecurityGroups=None, VpcSecurityGroupIds=None, MasterUserPassword=None, ClusterParameterGroupName=None, AutomatedSnapshotRetentionPeriod=None, PreferredMaintenanceWindow=None, ClusterVersion=None, AllowVersionUpgrade=... | python | def modify_cluster(ClusterIdentifier=None, ClusterType=None, NodeType=None, NumberOfNodes=None, ClusterSecurityGroups=None, VpcSecurityGroupIds=None, MasterUserPassword=None, ClusterParameterGroupName=None, AutomatedSnapshotRetentionPeriod=None, PreferredMaintenanceWindow=None, ClusterVersion=None, AllowVersionUpgrade=... | [
"def",
"modify_cluster",
"(",
"ClusterIdentifier",
"=",
"None",
",",
"ClusterType",
"=",
"None",
",",
"NodeType",
"=",
"None",
",",
"NumberOfNodes",
"=",
"None",
",",
"ClusterSecurityGroups",
"=",
"None",
",",
"VpcSecurityGroupIds",
"=",
"None",
",",
"MasterUser... | Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter gro... | [
"Modifies",
"the",
"settings",
"for",
"a",
"cluster",
".",
"For",
"example",
"you",
"can",
"add",
"another",
"security",
"or",
"parameter",
"group",
"update",
"the",
"preferred",
"maintenance",
"window",
"or",
"change",
"the",
"master",
"user",
"password",
"."... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/redshift.py#L3733-L4010 |
wavycloud/pyboto3 | pyboto3/redshift.py | restore_from_cluster_snapshot | def restore_from_cluster_snapshot(ClusterIdentifier=None, SnapshotIdentifier=None, SnapshotClusterIdentifier=None, Port=None, AvailabilityZone=None, AllowVersionUpgrade=None, ClusterSubnetGroupName=None, PubliclyAccessible=None, OwnerAccount=None, HsmClientCertificateIdentifier=None, HsmConfigurationIdentifier=None, El... | python | def restore_from_cluster_snapshot(ClusterIdentifier=None, SnapshotIdentifier=None, SnapshotClusterIdentifier=None, Port=None, AvailabilityZone=None, AllowVersionUpgrade=None, ClusterSubnetGroupName=None, PubliclyAccessible=None, OwnerAccount=None, HsmClientCertificateIdentifier=None, HsmConfigurationIdentifier=None, El... | [
"def",
"restore_from_cluster_snapshot",
"(",
"ClusterIdentifier",
"=",
"None",
",",
"SnapshotIdentifier",
"=",
"None",
",",
"SnapshotClusterIdentifier",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"AllowVersionUpgrade",
"=",
"No... | Creates a new cluster from a snapshot. By default, Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter groups. After Amazon Redshift creates the clust... | [
"Creates",
"a",
"new",
"cluster",
"from",
"a",
"snapshot",
".",
"By",
"default",
"Amazon",
"Redshift",
"creates",
"the",
"resulting",
"cluster",
"with",
"the",
"same",
"configuration",
"as",
"the",
"original",
"cluster",
"from",
"which",
"the",
"snapshot",
"wa... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/redshift.py#L4788-L5073 |
wavycloud/pyboto3 | pyboto3/snowball.py | create_cluster | def create_cluster(JobType=None, Resources=None, Description=None, AddressId=None, KmsKeyARN=None, RoleARN=None, SnowballType=None, ShippingOption=None, Notification=None, ForwardingAddressId=None):
"""
Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to creat... | python | def create_cluster(JobType=None, Resources=None, Description=None, AddressId=None, KmsKeyARN=None, RoleARN=None, SnowballType=None, ShippingOption=None, Notification=None, ForwardingAddressId=None):
"""
Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to creat... | [
"def",
"create_cluster",
"(",
"JobType",
"=",
"None",
",",
"Resources",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"AddressId",
"=",
"None",
",",
"KmsKeyARN",
"=",
"None",
",",
"RoleARN",
"=",
"None",
",",
"SnowballType",
"=",
"None",
",",
"Shipp... | Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
See also: AWS API Documentation
Examples
Creates an empty cluster. Each cluster suppor... | [
"Creates",
"an",
"empty",
"cluster",
".",
"Each",
"cluster",
"supports",
"five",
"nodes",
".",
"You",
"use",
"the",
"CreateJob",
"action",
"separately",
"to",
"create",
"the",
"jobs",
"for",
"each",
"of",
"these",
"nodes",
".",
"The",
"cluster",
"does",
"n... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/snowball.py#L151-L272 |
wavycloud/pyboto3 | pyboto3/snowball.py | create_job | def create_job(JobType=None, Resources=None, Description=None, AddressId=None, KmsKeyARN=None, RoleARN=None, SnowballCapacityPreference=None, ShippingOption=None, Notification=None, ClusterId=None, SnowballType=None, ForwardingAddressId=None):
"""
Creates a job to import or export data between Amazon S3 and you... | python | def create_job(JobType=None, Resources=None, Description=None, AddressId=None, KmsKeyARN=None, RoleARN=None, SnowballCapacityPreference=None, ShippingOption=None, Notification=None, ClusterId=None, SnowballType=None, ForwardingAddressId=None):
"""
Creates a job to import or export data between Amazon S3 and you... | [
"def",
"create_job",
"(",
"JobType",
"=",
"None",
",",
"Resources",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"AddressId",
"=",
"None",
",",
"KmsKeyARN",
"=",
"None",
",",
"RoleARN",
"=",
"None",
",",
"SnowballCapacityPreference",
"=",
"None",
","... | Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes a... | [
"Creates",
"a",
"job",
"to",
"import",
"or",
"export",
"data",
"between",
"Amazon",
"S3",
"and",
"your",
"on",
"-",
"premises",
"data",
"center",
".",
"Your",
"AWS",
"account",
"must",
"have",
"the",
"right",
"trust",
"policies",
"and",
"permissions",
"in"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/snowball.py#L274-L397 |
wavycloud/pyboto3 | pyboto3/snowball.py | update_job | def update_job(JobId=None, RoleARN=None, Notification=None, Resources=None, AddressId=None, ShippingOption=None, Description=None, SnowballCapacityPreference=None, ForwardingAddressId=None):
"""
While a job's JobState value is New , you can update some of the information associated with a job. Once the job chan... | python | def update_job(JobId=None, RoleARN=None, Notification=None, Resources=None, AddressId=None, ShippingOption=None, Description=None, SnowballCapacityPreference=None, ForwardingAddressId=None):
"""
While a job's JobState value is New , you can update some of the information associated with a job. Once the job chan... | [
"def",
"update_job",
"(",
"JobId",
"=",
"None",
",",
"RoleARN",
"=",
"None",
",",
"Notification",
"=",
"None",
",",
"Resources",
"=",
"None",
",",
"AddressId",
"=",
"None",
",",
"ShippingOption",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Snowba... | While a job's JobState value is New , you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
See also: AWS API Documentation
Examples
This action allows you to u... | [
"While",
"a",
"job",
"s",
"JobState",
"value",
"is",
"New",
"you",
"can",
"update",
"some",
"of",
"the",
"information",
"associated",
"with",
"a",
"job",
".",
"Once",
"the",
"job",
"changes",
"to",
"a",
"different",
"job",
"state",
"usually",
"within",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/snowball.py#L1077-L1184 |
wavycloud/pyboto3 | pyboto3/ssm.py | register_task_with_maintenance_window | def register_task_with_maintenance_window(WindowId=None, Targets=None, TaskArn=None, ServiceRoleArn=None, TaskType=None, TaskParameters=None, Priority=None, MaxConcurrency=None, MaxErrors=None, LoggingInfo=None, ClientToken=None):
"""
Adds a new task to a Maintenance Window.
See also: AWS API Documentation
... | python | def register_task_with_maintenance_window(WindowId=None, Targets=None, TaskArn=None, ServiceRoleArn=None, TaskType=None, TaskParameters=None, Priority=None, MaxConcurrency=None, MaxErrors=None, LoggingInfo=None, ClientToken=None):
"""
Adds a new task to a Maintenance Window.
See also: AWS API Documentation
... | [
"def",
"register_task_with_maintenance_window",
"(",
"WindowId",
"=",
"None",
",",
"Targets",
"=",
"None",
",",
"TaskArn",
"=",
"None",
",",
"ServiceRoleArn",
"=",
"None",
",",
"TaskType",
"=",
"None",
",",
"TaskParameters",
"=",
"None",
",",
"Priority",
"=",
... | Adds a new task to a Maintenance Window.
See also: AWS API Documentation
:example: response = client.register_task_with_maintenance_window(
WindowId='string',
Targets=[
{
'Key': 'string',
'Values': [
'string',
... | [
"Adds",
"a",
"new",
"task",
"to",
"a",
"Maintenance",
"Window",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"register_task_with_maintenance_window",
"(",
"WindowId",
"=",
"string",
"Targets",
"="... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ssm.py#L3774-L3883 |
wavycloud/pyboto3 | pyboto3/ssm.py | send_command | def send_command(InstanceIds=None, Targets=None, DocumentName=None, DocumentHash=None, DocumentHashType=None, TimeoutSeconds=None, Comment=None, Parameters=None, OutputS3Region=None, OutputS3BucketName=None, OutputS3KeyPrefix=None, MaxConcurrency=None, MaxErrors=None, ServiceRoleArn=None, NotificationConfig=None):
... | python | def send_command(InstanceIds=None, Targets=None, DocumentName=None, DocumentHash=None, DocumentHashType=None, TimeoutSeconds=None, Comment=None, Parameters=None, OutputS3Region=None, OutputS3BucketName=None, OutputS3KeyPrefix=None, MaxConcurrency=None, MaxErrors=None, ServiceRoleArn=None, NotificationConfig=None):
... | [
"def",
"send_command",
"(",
"InstanceIds",
"=",
"None",
",",
"Targets",
"=",
"None",
",",
"DocumentName",
"=",
"None",
",",
"DocumentHash",
"=",
"None",
",",
"DocumentHashType",
"=",
"None",
",",
"TimeoutSeconds",
"=",
"None",
",",
"Comment",
"=",
"None",
... | Executes commands on one or more remote instances.
See also: AWS API Documentation
:example: response = client.send_command(
InstanceIds=[
'string',
],
Targets=[
{
'Key': 'string',
'Values': [
'string',... | [
"Executes",
"commands",
"on",
"one",
"or",
"more",
"remote",
"instances",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"send_command",
"(",
"InstanceIds",
"=",
"[",
"string",
"]",
"Targets",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ssm.py#L3926-L4097 |
wavycloud/pyboto3 | pyboto3/opsworkscm.py | create_server | def create_server(AssociatePublicIpAddress=None, DisableAutomatedBackup=None, Engine=None, EngineModel=None, EngineVersion=None, EngineAttributes=None, BackupRetentionCount=None, ServerName=None, InstanceProfileArn=None, InstanceType=None, KeyPair=None, PreferredMaintenanceWindow=None, PreferredBackupWindow=None, Secur... | python | def create_server(AssociatePublicIpAddress=None, DisableAutomatedBackup=None, Engine=None, EngineModel=None, EngineVersion=None, EngineAttributes=None, BackupRetentionCount=None, ServerName=None, InstanceProfileArn=None, InstanceType=None, KeyPair=None, PreferredMaintenanceWindow=None, PreferredBackupWindow=None, Secur... | [
"def",
"create_server",
"(",
"AssociatePublicIpAddress",
"=",
"None",
",",
"DisableAutomatedBackup",
"=",
"None",
",",
"Engine",
"=",
"None",
",",
"EngineModel",
"=",
"None",
",",
"EngineVersion",
"=",
"None",
",",
"EngineAttributes",
"=",
"None",
",",
"BackupRe... | Creates and immedately starts a new server. The server is ready to use when it is in the HEALTHY state. By default, you can create a maximum of 10 servers.
This operation is asynchronous.
A LimitExceededException is thrown when you have created the maximum number of servers (10). A ResourceAlreadyExistsExceptio... | [
"Creates",
"and",
"immedately",
"starts",
"a",
"new",
"server",
".",
"The",
"server",
"is",
"ready",
"to",
"use",
"when",
"it",
"is",
"in",
"the",
"HEALTHY",
"state",
".",
"By",
"default",
"you",
"can",
"create",
"a",
"maximum",
"of",
"10",
"servers",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworkscm.py#L157-L323 |
wavycloud/pyboto3 | pyboto3/servicecatalog.py | create_product | def create_product(AcceptLanguage=None, Name=None, Owner=None, Description=None, Distributor=None, SupportDescription=None, SupportEmail=None, SupportUrl=None, ProductType=None, Tags=None, ProvisioningArtifactParameters=None, IdempotencyToken=None):
"""
Creates a new product.
See also: AWS API Documentation... | python | def create_product(AcceptLanguage=None, Name=None, Owner=None, Description=None, Distributor=None, SupportDescription=None, SupportEmail=None, SupportUrl=None, ProductType=None, Tags=None, ProvisioningArtifactParameters=None, IdempotencyToken=None):
"""
Creates a new product.
See also: AWS API Documentation... | [
"def",
"create_product",
"(",
"AcceptLanguage",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Owner",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Distributor",
"=",
"None",
",",
"SupportDescription",
"=",
"None",
",",
"SupportEmail",
"=",
"None",
",... | Creates a new product.
See also: AWS API Documentation
:example: response = client.create_product(
AcceptLanguage='string',
Name='string',
Owner='string',
Description='string',
Distributor='string',
SupportDescription='string',
SupportEmail='stri... | [
"Creates",
"a",
"new",
"product",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_product",
"(",
"AcceptLanguage",
"=",
"string",
"Name",
"=",
"string",
"Owner",
"=",
"string",
"Description... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/servicecatalog.py#L358-L493 |
wavycloud/pyboto3 | pyboto3/servicecatalog.py | provision_product | def provision_product(AcceptLanguage=None, ProductId=None, ProvisioningArtifactId=None, PathId=None, ProvisionedProductName=None, ProvisioningParameters=None, Tags=None, NotificationArns=None, ProvisionToken=None):
"""
Requests a Provision of a specified product. A ProvisionedProduct is a resourced instance for... | python | def provision_product(AcceptLanguage=None, ProductId=None, ProvisioningArtifactId=None, PathId=None, ProvisionedProductName=None, ProvisioningParameters=None, Tags=None, NotificationArns=None, ProvisionToken=None):
"""
Requests a Provision of a specified product. A ProvisionedProduct is a resourced instance for... | [
"def",
"provision_product",
"(",
"AcceptLanguage",
"=",
"None",
",",
"ProductId",
"=",
"None",
",",
"ProvisioningArtifactId",
"=",
"None",
",",
"PathId",
"=",
"None",
",",
"ProvisionedProductName",
"=",
"None",
",",
"ProvisioningParameters",
"=",
"None",
",",
"T... | Requests a Provision of a specified product. A ProvisionedProduct is a resourced instance for a product. For example, provisioning a CloudFormation-template-backed product results in launching a CloudFormation stack and all the underlying resources that come with it.
You can check the status of this request using t... | [
"Requests",
"a",
"Provision",
"of",
"a",
"specified",
"product",
".",
"A",
"ProvisionedProduct",
"is",
"a",
"resourced",
"instance",
"for",
"a",
"product",
".",
"For",
"example",
"provisioning",
"a",
"CloudFormation",
"-",
"template",
"-",
"backed",
"product",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/servicecatalog.py#L1816-L1932 |
wavycloud/pyboto3 | pyboto3/servicecatalog.py | update_product | def update_product(AcceptLanguage=None, Id=None, Name=None, Owner=None, Description=None, Distributor=None, SupportDescription=None, SupportEmail=None, SupportUrl=None, AddTags=None, RemoveTags=None):
"""
Updates an existing product.
See also: AWS API Documentation
:example: response = client.... | python | def update_product(AcceptLanguage=None, Id=None, Name=None, Owner=None, Description=None, Distributor=None, SupportDescription=None, SupportEmail=None, SupportUrl=None, AddTags=None, RemoveTags=None):
"""
Updates an existing product.
See also: AWS API Documentation
:example: response = client.... | [
"def",
"update_product",
"(",
"AcceptLanguage",
"=",
"None",
",",
"Id",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Owner",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"Distributor",
"=",
"None",
",",
"SupportDescription",
"=",
"None",
",",
"Supp... | Updates an existing product.
See also: AWS API Documentation
:example: response = client.update_product(
AcceptLanguage='string',
Id='string',
Name='string',
Owner='string',
Description='string',
Distributor='string',
SupportDescription='string',... | [
"Updates",
"an",
"existing",
"product",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_product",
"(",
"AcceptLanguage",
"=",
"string",
"Id",
"=",
"string",
"Name",
"=",
"string",
"Owner",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/servicecatalog.py#L2395-L2500 |
wavycloud/pyboto3 | pyboto3/swf.py | list_closed_workflow_executions | def list_closed_workflow_executions(domain=None, startTimeFilter=None, closeTimeFilter=None, executionFilter=None, closeStatusFilter=None, typeFilter=None, tagFilter=None, nextPageToken=None, maximumPageSize=None, reverseOrder=None):
"""
Returns a list of closed workflow executions in the specified domain that ... | python | def list_closed_workflow_executions(domain=None, startTimeFilter=None, closeTimeFilter=None, executionFilter=None, closeStatusFilter=None, typeFilter=None, tagFilter=None, nextPageToken=None, maximumPageSize=None, reverseOrder=None):
"""
Returns a list of closed workflow executions in the specified domain that ... | [
"def",
"list_closed_workflow_executions",
"(",
"domain",
"=",
"None",
",",
"startTimeFilter",
"=",
"None",
",",
"closeTimeFilter",
"=",
"None",
",",
"executionFilter",
"=",
"None",
",",
"closeStatusFilter",
"=",
"None",
",",
"typeFilter",
"=",
"None",
",",
"tagF... | Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
Access Control
You can use IAM policies to control this act... | [
"Returns",
"a",
"list",
"of",
"closed",
"workflow",
"executions",
"in",
"the",
"specified",
"domain",
"that",
"meet",
"the",
"filtering",
"criteria",
".",
"The",
"results",
"may",
"be",
"split",
"into",
"multiple",
"pages",
".",
"To",
"retrieve",
"subsequent",... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/swf.py#L1483-L1693 |
wavycloud/pyboto3 | pyboto3/swf.py | register_activity_type | def register_activity_type(domain=None, name=None, version=None, description=None, defaultTaskStartToCloseTimeout=None, defaultTaskHeartbeatTimeout=None, defaultTaskList=None, defaultTaskPriority=None, defaultTaskScheduleToStartTimeout=None, defaultTaskScheduleToCloseTimeout=None):
"""
Registers a new activity ... | python | def register_activity_type(domain=None, name=None, version=None, description=None, defaultTaskStartToCloseTimeout=None, defaultTaskHeartbeatTimeout=None, defaultTaskList=None, defaultTaskPriority=None, defaultTaskScheduleToStartTimeout=None, defaultTaskScheduleToCloseTimeout=None):
"""
Registers a new activity ... | [
"def",
"register_activity_type",
"(",
"domain",
"=",
"None",
",",
"name",
"=",
"None",
",",
"version",
"=",
"None",
",",
"description",
"=",
"None",
",",
"defaultTaskStartToCloseTimeout",
"=",
"None",
",",
"defaultTaskHeartbeatTimeout",
"=",
"None",
",",
"defaul... | Registers a new activity type along with its configuration settings in the specified domain.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outsi... | [
"Registers",
"a",
"new",
"activity",
"type",
"along",
"with",
"its",
"configuration",
"settings",
"in",
"the",
"specified",
"domain",
".",
"Access",
"Control",
"You",
"can",
"use",
"IAM",
"policies",
"to",
"control",
"this",
"action",
"s",
"access",
"to",
"A... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/swf.py#L2631-L2748 |
wavycloud/pyboto3 | pyboto3/swf.py | register_workflow_type | def register_workflow_type(domain=None, name=None, version=None, description=None, defaultTaskStartToCloseTimeout=None, defaultExecutionStartToCloseTimeout=None, defaultTaskList=None, defaultTaskPriority=None, defaultChildPolicy=None, defaultLambdaRole=None):
"""
Registers a new workflow type and its configurat... | python | def register_workflow_type(domain=None, name=None, version=None, description=None, defaultTaskStartToCloseTimeout=None, defaultExecutionStartToCloseTimeout=None, defaultTaskList=None, defaultTaskPriority=None, defaultChildPolicy=None, defaultLambdaRole=None):
"""
Registers a new workflow type and its configurat... | [
"def",
"register_workflow_type",
"(",
"domain",
"=",
"None",
",",
"name",
"=",
"None",
",",
"version",
"=",
"None",
",",
"description",
"=",
"None",
",",
"defaultTaskStartToCloseTimeout",
"=",
"None",
",",
"defaultExecutionStartToCloseTimeout",
"=",
"None",
",",
... | Registers a new workflow type and its configuration settings in the specified domain.
The retention period for the workflow history is set by the RegisterDomain action.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller does not hav... | [
"Registers",
"a",
"new",
"workflow",
"type",
"and",
"its",
"configuration",
"settings",
"in",
"the",
"specified",
"domain",
".",
"The",
"retention",
"period",
"for",
"the",
"workflow",
"history",
"is",
"set",
"by",
"the",
"RegisterDomain",
"action",
".",
"Acce... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/swf.py#L2797-L2923 |
wavycloud/pyboto3 | pyboto3/swf.py | start_workflow_execution | def start_workflow_execution(domain=None, workflowId=None, workflowType=None, taskList=None, taskPriority=None, input=None, executionStartToCloseTimeout=None, tagList=None, taskStartToCloseTimeout=None, childPolicy=None, lambdaRole=None):
"""
Starts an execution of the workflow type in the specified domain usin... | python | def start_workflow_execution(domain=None, workflowId=None, workflowType=None, taskList=None, taskPriority=None, input=None, executionStartToCloseTimeout=None, tagList=None, taskStartToCloseTimeout=None, childPolicy=None, lambdaRole=None):
"""
Starts an execution of the workflow type in the specified domain usin... | [
"def",
"start_workflow_execution",
"(",
"domain",
"=",
"None",
",",
"workflowId",
"=",
"None",
",",
"workflowType",
"=",
"None",
",",
"taskList",
"=",
"None",
",",
"taskPriority",
"=",
"None",
",",
"input",
"=",
"None",
",",
"executionStartToCloseTimeout",
"="... | Starts an execution of the workflow type in the specified domain using the provided workflowId and input data.
This action returns the newly started workflow execution.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller does not have... | [
"Starts",
"an",
"execution",
"of",
"the",
"workflow",
"type",
"in",
"the",
"specified",
"domain",
"using",
"the",
"provided",
"workflowId",
"and",
"input",
"data",
".",
"This",
"action",
"returns",
"the",
"newly",
"started",
"workflow",
"execution",
".",
"Acce... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/swf.py#L3478-L3668 |
wavycloud/pyboto3 | pyboto3/rds.py | create_db_cluster | def create_db_cluster(AvailabilityZones=None, BackupRetentionPeriod=None, CharacterSetName=None, DatabaseName=None, DBClusterIdentifier=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, DBSubnetGroupName=None, Engine=None, EngineVersion=None, Port=None, MasterUsername=None, MasterUserPassword=None, Opti... | python | def create_db_cluster(AvailabilityZones=None, BackupRetentionPeriod=None, CharacterSetName=None, DatabaseName=None, DBClusterIdentifier=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, DBSubnetGroupName=None, Engine=None, EngineVersion=None, Port=None, MasterUsername=None, MasterUserPassword=None, Opti... | [
"def",
"create_db_cluster",
"(",
"AvailabilityZones",
"=",
"None",
",",
"BackupRetentionPeriod",
"=",
"None",
",",
"CharacterSetName",
"=",
"None",
",",
"DatabaseName",
"=",
"None",
",",
"DBClusterIdentifier",
"=",
"None",
",",
"DBClusterParameterGroupName",
"=",
"N... | Creates a new Amazon Aurora DB cluster.
You can use the ReplicationSourceIdentifier parameter to create the DB cluster as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance. For cross-region replication where the DB cluster identified by ReplicationSourceIdentifier is encrypted, you must also spec... | [
"Creates",
"a",
"new",
"Amazon",
"Aurora",
"DB",
"cluster",
".",
"You",
"can",
"use",
"the",
"ReplicationSourceIdentifier",
"parameter",
"to",
"create",
"the",
"DB",
"cluster",
"as",
"a",
"Read",
"Replica",
"of",
"another",
"DB",
"cluster",
"or",
"Amazon",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L800-L1062 |
wavycloud/pyboto3 | pyboto3/rds.py | create_db_instance | def create_db_instance(DBName=None, DBInstanceIdentifier=None, AllocatedStorage=None, DBInstanceClass=None, Engine=None, MasterUsername=None, MasterUserPassword=None, DBSecurityGroups=None, VpcSecurityGroupIds=None, AvailabilityZone=None, DBSubnetGroupName=None, PreferredMaintenanceWindow=None, DBParameterGroupName=Non... | python | def create_db_instance(DBName=None, DBInstanceIdentifier=None, AllocatedStorage=None, DBInstanceClass=None, Engine=None, MasterUsername=None, MasterUserPassword=None, DBSecurityGroups=None, VpcSecurityGroupIds=None, AvailabilityZone=None, DBSubnetGroupName=None, PreferredMaintenanceWindow=None, DBParameterGroupName=Non... | [
"def",
"create_db_instance",
"(",
"DBName",
"=",
"None",
",",
"DBInstanceIdentifier",
"=",
"None",
",",
"AllocatedStorage",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"Engine",
"=",
"None",
",",
"MasterUsername",
"=",
"None",
",",
"MasterUserPassword... | Creates a new DB instance.
See also: AWS API Documentation
Examples
This example creates a DB instance.
Expected Output:
:example: response = client.create_db_instance(
DBName='string',
DBInstanceIdentifier='string',
AllocatedStorage=123,
DBInstanceClass='st... | [
"Creates",
"a",
"new",
"DB",
"instance",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
"Examples",
"This",
"example",
"creates",
"a",
"DB",
"instance",
".",
"Expected",
"Output",
":",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_d... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L1217-L1783 |
wavycloud/pyboto3 | pyboto3/rds.py | create_db_instance_read_replica | def create_db_instance_read_replica(DBInstanceIdentifier=None, SourceDBInstanceIdentifier=None, DBInstanceClass=None, AvailabilityZone=None, Port=None, AutoMinorVersionUpgrade=None, Iops=None, OptionGroupName=None, PubliclyAccessible=None, Tags=None, DBSubnetGroupName=None, StorageType=None, CopyTagsToSnapshot=None, Mo... | python | def create_db_instance_read_replica(DBInstanceIdentifier=None, SourceDBInstanceIdentifier=None, DBInstanceClass=None, AvailabilityZone=None, Port=None, AutoMinorVersionUpgrade=None, Iops=None, OptionGroupName=None, PubliclyAccessible=None, Tags=None, DBSubnetGroupName=None, StorageType=None, CopyTagsToSnapshot=None, Mo... | [
"def",
"create_db_instance_read_replica",
"(",
"DBInstanceIdentifier",
"=",
"None",
",",
"SourceDBInstanceIdentifier",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"AutoMinorVersionUpgrade",
"="... | Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL that acts as a Read Replica of a source DB instance.
All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inh... | [
"Creates",
"a",
"DB",
"instance",
"for",
"a",
"DB",
"instance",
"running",
"MySQL",
"MariaDB",
"or",
"PostgreSQL",
"that",
"acts",
"as",
"a",
"Read",
"Replica",
"of",
"a",
"source",
"DB",
"instance",
".",
"All",
"Read",
"Replica",
"DB",
"instances",
"are",... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L1785-L2081 |
wavycloud/pyboto3 | pyboto3/rds.py | describe_db_engine_versions | def describe_db_engine_versions(Engine=None, EngineVersion=None, DBParameterGroupFamily=None, Filters=None, MaxRecords=None, Marker=None, DefaultOnly=None, ListSupportedCharacterSets=None, ListSupportedTimezones=None):
"""
Returns a list of the available DB engines.
See also: AWS API Documentation
... | python | def describe_db_engine_versions(Engine=None, EngineVersion=None, DBParameterGroupFamily=None, Filters=None, MaxRecords=None, Marker=None, DefaultOnly=None, ListSupportedCharacterSets=None, ListSupportedTimezones=None):
"""
Returns a list of the available DB engines.
See also: AWS API Documentation
... | [
"def",
"describe_db_engine_versions",
"(",
"Engine",
"=",
"None",
",",
"EngineVersion",
"=",
"None",
",",
"DBParameterGroupFamily",
"=",
"None",
",",
"Filters",
"=",
"None",
",",
"MaxRecords",
"=",
"None",
",",
"Marker",
"=",
"None",
",",
"DefaultOnly",
"=",
... | Returns a list of the available DB engines.
See also: AWS API Documentation
Examples
This example lists settings for the specified DB engine version.
Expected Output:
:example: response = client.describe_db_engine_versions(
Engine='string',
EngineVersion='string',
D... | [
"Returns",
"a",
"list",
"of",
"the",
"available",
"DB",
"engines",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
"Examples",
"This",
"example",
"lists",
"settings",
"for",
"the",
"specified",
"DB",
"engine",
"version",
".",
"Expected",
"Output",
":... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L3813-L3925 |
wavycloud/pyboto3 | pyboto3/rds.py | describe_reserved_db_instances | def describe_reserved_db_instances(ReservedDBInstanceId=None, ReservedDBInstancesOfferingId=None, DBInstanceClass=None, Duration=None, ProductDescription=None, OfferingType=None, MultiAZ=None, Filters=None, MaxRecords=None, Marker=None):
"""
Returns information about reserved DB instances for this account, or a... | python | def describe_reserved_db_instances(ReservedDBInstanceId=None, ReservedDBInstancesOfferingId=None, DBInstanceClass=None, Duration=None, ProductDescription=None, OfferingType=None, MultiAZ=None, Filters=None, MaxRecords=None, Marker=None):
"""
Returns information about reserved DB instances for this account, or a... | [
"def",
"describe_reserved_db_instances",
"(",
"ReservedDBInstanceId",
"=",
"None",
",",
"ReservedDBInstancesOfferingId",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"Duration",
"=",
"None",
",",
"ProductDescription",
"=",
"None",
",",
"OfferingType",
"=",
... | Returns information about reserved DB instances for this account, or about a specified reserved DB instance.
See also: AWS API Documentation
Examples
This example lists information for all reserved DB instances for the specified DB instance class, duration, product, offering type, and availability zone... | [
"Returns",
"information",
"about",
"reserved",
"DB",
"instances",
"for",
"this",
"account",
"or",
"about",
"a",
"specified",
"reserved",
"DB",
"instance",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
"Examples",
"This",
"example",
"lists",
"informatio... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L5435-L5539 |
wavycloud/pyboto3 | pyboto3/rds.py | describe_reserved_db_instances_offerings | def describe_reserved_db_instances_offerings(ReservedDBInstancesOfferingId=None, DBInstanceClass=None, Duration=None, ProductDescription=None, OfferingType=None, MultiAZ=None, Filters=None, MaxRecords=None, Marker=None):
"""
Lists available reserved DB instance offerings.
See also: AWS API Documentation
... | python | def describe_reserved_db_instances_offerings(ReservedDBInstancesOfferingId=None, DBInstanceClass=None, Duration=None, ProductDescription=None, OfferingType=None, MultiAZ=None, Filters=None, MaxRecords=None, Marker=None):
"""
Lists available reserved DB instance offerings.
See also: AWS API Documentation
... | [
"def",
"describe_reserved_db_instances_offerings",
"(",
"ReservedDBInstancesOfferingId",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"Duration",
"=",
"None",
",",
"ProductDescription",
"=",
"None",
",",
"OfferingType",
"=",
"None",
",",
"MultiAZ",
"=",
"N... | Lists available reserved DB instance offerings.
See also: AWS API Documentation
Examples
This example lists information for all reserved DB instance offerings for the specified DB instance class, duration, product, offering type, and availability zone settings.
Expected Output:
:example: r... | [
"Lists",
"available",
"reserved",
"DB",
"instance",
"offerings",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
"Examples",
"This",
"example",
"lists",
"information",
"for",
"all",
"reserved",
"DB",
"instance",
"offerings",
"for",
"the",
"specified",
"D... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L5541-L5638 |
wavycloud/pyboto3 | pyboto3/rds.py | modify_db_cluster | def modify_db_cluster(DBClusterIdentifier=None, NewDBClusterIdentifier=None, ApplyImmediately=None, BackupRetentionPeriod=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, Port=None, MasterUserPassword=None, OptionGroupName=None, PreferredBackupWindow=None, PreferredMaintenanceWindow=None, EnableIAMData... | python | def modify_db_cluster(DBClusterIdentifier=None, NewDBClusterIdentifier=None, ApplyImmediately=None, BackupRetentionPeriod=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, Port=None, MasterUserPassword=None, OptionGroupName=None, PreferredBackupWindow=None, PreferredMaintenanceWindow=None, EnableIAMData... | [
"def",
"modify_db_cluster",
"(",
"DBClusterIdentifier",
"=",
"None",
",",
"NewDBClusterIdentifier",
"=",
"None",
",",
"ApplyImmediately",
"=",
"None",
",",
"BackupRetentionPeriod",
"=",
"None",
",",
"DBClusterParameterGroupName",
"=",
"None",
",",
"VpcSecurityGroupIds",... | Modify a setting for an Amazon Aurora DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
See also: AWS API Documentation
Exam... | [
"Modify",
"a",
"setting",
"for",
"an",
"Amazon",
"Aurora",
"DB",
"cluster",
".",
"You",
"can",
"change",
"one",
"or",
"more",
"database",
"configuration",
"parameters",
"by",
"specifying",
"these",
"parameters",
"and",
"the",
"new",
"values",
"in",
"the",
"r... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L5982-L6164 |
wavycloud/pyboto3 | pyboto3/rds.py | modify_db_instance | def modify_db_instance(DBInstanceIdentifier=None, AllocatedStorage=None, DBInstanceClass=None, DBSubnetGroupName=None, DBSecurityGroups=None, VpcSecurityGroupIds=None, ApplyImmediately=None, MasterUserPassword=None, DBParameterGroupName=None, BackupRetentionPeriod=None, PreferredBackupWindow=None, PreferredMaintenanceW... | python | def modify_db_instance(DBInstanceIdentifier=None, AllocatedStorage=None, DBInstanceClass=None, DBSubnetGroupName=None, DBSecurityGroups=None, VpcSecurityGroupIds=None, ApplyImmediately=None, MasterUserPassword=None, DBParameterGroupName=None, BackupRetentionPeriod=None, PreferredBackupWindow=None, PreferredMaintenanceW... | [
"def",
"modify_db_instance",
"(",
"DBInstanceIdentifier",
"=",
"None",
",",
"AllocatedStorage",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"DBSubnetGroupName",
"=",
"None",
",",
"DBSecurityGroups",
"=",
"None",
",",
"VpcSecurityGroupIds",
"=",
"None",
... | Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
See also: AWS API Documentation
Examples
This example immediately changes the specified settings for the specified DB instance.
Expecte... | [
"Modifies",
"settings",
"for",
"a",
"DB",
"instance",
".",
"You",
"can",
"change",
"one",
"or",
"more",
"database",
"configuration",
"parameters",
"by",
"specifying",
"these",
"parameters",
"and",
"the",
"new",
"values",
"in",
"the",
"request",
".",
"See",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L6300-L6729 |
wavycloud/pyboto3 | pyboto3/rds.py | restore_db_cluster_from_s3 | def restore_db_cluster_from_s3(AvailabilityZones=None, BackupRetentionPeriod=None, CharacterSetName=None, DatabaseName=None, DBClusterIdentifier=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, DBSubnetGroupName=None, Engine=None, EngineVersion=None, Port=None, MasterUsername=None, MasterUserPassword=N... | python | def restore_db_cluster_from_s3(AvailabilityZones=None, BackupRetentionPeriod=None, CharacterSetName=None, DatabaseName=None, DBClusterIdentifier=None, DBClusterParameterGroupName=None, VpcSecurityGroupIds=None, DBSubnetGroupName=None, Engine=None, EngineVersion=None, Port=None, MasterUsername=None, MasterUserPassword=N... | [
"def",
"restore_db_cluster_from_s3",
"(",
"AvailabilityZones",
"=",
"None",
",",
"BackupRetentionPeriod",
"=",
"None",
",",
"CharacterSetName",
"=",
"None",
",",
"DatabaseName",
"=",
"None",
",",
"DBClusterIdentifier",
"=",
"None",
",",
"DBClusterParameterGroupName",
... | Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket. Amazon RDS must be authorized to access the Amazon S3 bucket and the data must be created using the Percona XtraBackup utility as described in Migrating Data from MySQL by Using an Amazon S3 Bucket .
See also: AWS API Documentation
... | [
"Creates",
"an",
"Amazon",
"Aurora",
"DB",
"cluster",
"from",
"data",
"stored",
"in",
"an",
"Amazon",
"S3",
"bucket",
".",
"Amazon",
"RDS",
"must",
"be",
"authorized",
"to",
"access",
"the",
"Amazon",
"S3",
"bucket",
"and",
"the",
"data",
"must",
"be",
"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L7988-L8258 |
wavycloud/pyboto3 | pyboto3/rds.py | restore_db_cluster_from_snapshot | def restore_db_cluster_from_snapshot(AvailabilityZones=None, DBClusterIdentifier=None, SnapshotIdentifier=None, Engine=None, EngineVersion=None, Port=None, DBSubnetGroupName=None, DatabaseName=None, OptionGroupName=None, VpcSecurityGroupIds=None, Tags=None, KmsKeyId=None, EnableIAMDatabaseAuthentication=None):
"""
... | python | def restore_db_cluster_from_snapshot(AvailabilityZones=None, DBClusterIdentifier=None, SnapshotIdentifier=None, Engine=None, EngineVersion=None, Port=None, DBSubnetGroupName=None, DatabaseName=None, OptionGroupName=None, VpcSecurityGroupIds=None, Tags=None, KmsKeyId=None, EnableIAMDatabaseAuthentication=None):
"""
... | [
"def",
"restore_db_cluster_from_snapshot",
"(",
"AvailabilityZones",
"=",
"None",
",",
"DBClusterIdentifier",
"=",
"None",
",",
"SnapshotIdentifier",
"=",
"None",
",",
"Engine",
"=",
"None",
",",
"EngineVersion",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"DBSu... | Creates a new DB cluster from a DB cluster snapshot. The target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
For more information on Amazon Aurora, see Aurora o... | [
"Creates",
"a",
"new",
"DB",
"cluster",
"from",
"a",
"DB",
"cluster",
"snapshot",
".",
"The",
"target",
"DB",
"cluster",
"is",
"created",
"from",
"the",
"source",
"DB",
"cluster",
"restore",
"point",
"with",
"the",
"same",
"configuration",
"as",
"the",
"or... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L8260-L8450 |
wavycloud/pyboto3 | pyboto3/rds.py | restore_db_cluster_to_point_in_time | def restore_db_cluster_to_point_in_time(DBClusterIdentifier=None, SourceDBClusterIdentifier=None, RestoreToTime=None, UseLatestRestorableTime=None, Port=None, DBSubnetGroupName=None, OptionGroupName=None, VpcSecurityGroupIds=None, Tags=None, KmsKeyId=None, EnableIAMDatabaseAuthentication=None):
"""
Restores a D... | python | def restore_db_cluster_to_point_in_time(DBClusterIdentifier=None, SourceDBClusterIdentifier=None, RestoreToTime=None, UseLatestRestorableTime=None, Port=None, DBSubnetGroupName=None, OptionGroupName=None, VpcSecurityGroupIds=None, Tags=None, KmsKeyId=None, EnableIAMDatabaseAuthentication=None):
"""
Restores a D... | [
"def",
"restore_db_cluster_to_point_in_time",
"(",
"DBClusterIdentifier",
"=",
"None",
",",
"SourceDBClusterIdentifier",
"=",
"None",
",",
"RestoreToTime",
"=",
"None",
",",
"UseLatestRestorableTime",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"DBSubnetGroupName",
"=... | Restores a DB cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target DB cluster is created from the source DB cluster with the same configuration as the original DB cluster, except that the new DB cluster is created with... | [
"Restores",
"a",
"DB",
"cluster",
"to",
"an",
"arbitrary",
"point",
"in",
"time",
".",
"Users",
"can",
"restore",
"to",
"any",
"point",
"in",
"time",
"before",
"LatestRestorableTime",
"for",
"up",
"to",
"BackupRetentionPeriod",
"days",
".",
"The",
"target",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L8452-L8637 |
wavycloud/pyboto3 | pyboto3/rds.py | restore_db_instance_from_db_snapshot | def restore_db_instance_from_db_snapshot(DBInstanceIdentifier=None, DBSnapshotIdentifier=None, DBInstanceClass=None, Port=None, AvailabilityZone=None, DBSubnetGroupName=None, MultiAZ=None, PubliclyAccessible=None, AutoMinorVersionUpgrade=None, LicenseModel=None, DBName=None, Engine=None, Iops=None, OptionGroupName=None... | python | def restore_db_instance_from_db_snapshot(DBInstanceIdentifier=None, DBSnapshotIdentifier=None, DBInstanceClass=None, Port=None, AvailabilityZone=None, DBSubnetGroupName=None, MultiAZ=None, PubliclyAccessible=None, AutoMinorVersionUpgrade=None, LicenseModel=None, DBName=None, Engine=None, Iops=None, OptionGroupName=None... | [
"def",
"restore_db_instance_from_db_snapshot",
"(",
"DBInstanceIdentifier",
"=",
"None",
",",
"DBSnapshotIdentifier",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"DBSubnetGroupName",
"=",
"No... | Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the most of original configuration with the default security group and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is... | [
"Creates",
"a",
"new",
"DB",
"instance",
"from",
"a",
"DB",
"snapshot",
".",
"The",
"target",
"database",
"is",
"created",
"from",
"the",
"source",
"database",
"restore",
"point",
"with",
"the",
"most",
"of",
"original",
"configuration",
"with",
"the",
"defa... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L8639-L8941 |
wavycloud/pyboto3 | pyboto3/rds.py | restore_db_instance_to_point_in_time | def restore_db_instance_to_point_in_time(SourceDBInstanceIdentifier=None, TargetDBInstanceIdentifier=None, RestoreTime=None, UseLatestRestorableTime=None, DBInstanceClass=None, Port=None, AvailabilityZone=None, DBSubnetGroupName=None, MultiAZ=None, PubliclyAccessible=None, AutoMinorVersionUpgrade=None, LicenseModel=Non... | python | def restore_db_instance_to_point_in_time(SourceDBInstanceIdentifier=None, TargetDBInstanceIdentifier=None, RestoreTime=None, UseLatestRestorableTime=None, DBInstanceClass=None, Port=None, AvailabilityZone=None, DBSubnetGroupName=None, MultiAZ=None, PubliclyAccessible=None, AutoMinorVersionUpgrade=None, LicenseModel=Non... | [
"def",
"restore_db_instance_to_point_in_time",
"(",
"SourceDBInstanceIdentifier",
"=",
"None",
",",
"TargetDBInstanceIdentifier",
"=",
"None",
",",
"RestoreTime",
"=",
"None",
",",
"UseLatestRestorableTime",
"=",
"None",
",",
"DBInstanceClass",
"=",
"None",
",",
"Port",... | Restores a DB instance to an arbitrary point in time. You can restore to any point in time before the time identified by the LatestRestorableTime property. You can restore to a point up to the number of days specified by the BackupRetentionPeriod property.
The target database is created with most of the original co... | [
"Restores",
"a",
"DB",
"instance",
"to",
"an",
"arbitrary",
"point",
"in",
"time",
".",
"You",
"can",
"restore",
"to",
"any",
"point",
"in",
"time",
"before",
"the",
"time",
"identified",
"by",
"the",
"LatestRestorableTime",
"property",
".",
"You",
"can",
... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/rds.py#L8943-L9261 |
wavycloud/pyboto3 | pyboto3/route53.py | update_health_check | def update_health_check(HealthCheckId=None, HealthCheckVersion=None, IPAddress=None, Port=None, ResourcePath=None, FullyQualifiedDomainName=None, SearchString=None, FailureThreshold=None, Inverted=None, HealthThreshold=None, ChildHealthChecks=None, EnableSNI=None, Regions=None, AlarmIdentifier=None, InsufficientDataHea... | python | def update_health_check(HealthCheckId=None, HealthCheckVersion=None, IPAddress=None, Port=None, ResourcePath=None, FullyQualifiedDomainName=None, SearchString=None, FailureThreshold=None, Inverted=None, HealthThreshold=None, ChildHealthChecks=None, EnableSNI=None, Regions=None, AlarmIdentifier=None, InsufficientDataHea... | [
"def",
"update_health_check",
"(",
"HealthCheckId",
"=",
"None",
",",
"HealthCheckVersion",
"=",
"None",
",",
"IPAddress",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"ResourcePath",
"=",
"None",
",",
"FullyQualifiedDomainName",
"=",
"None",
",",
"SearchString",... | Updates an existing health check. Note that some values can't be updated.
For more information about updating health checks, see Creating, Updating, and Deleting Health Checks in the Amazon Route 53 Developer Guide .
See also: AWS API Documentation
:example: response = client.update_health_check(
... | [
"Updates",
"an",
"existing",
"health",
"check",
".",
"Note",
"that",
"some",
"values",
"can",
"t",
"be",
"updated",
".",
"For",
"more",
"information",
"about",
"updating",
"health",
"checks",
"see",
"Creating",
"Updating",
"and",
"Deleting",
"Health",
"Checks"... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/route53.py#L2976-L3170 |
wavycloud/pyboto3 | pyboto3/mturk.py | create_hit | def create_hit(MaxAssignments=None, AutoApprovalDelayInSeconds=None, LifetimeInSeconds=None, AssignmentDurationInSeconds=None, Reward=None, Title=None, Keywords=None, Description=None, Question=None, RequesterAnnotation=None, QualificationRequirements=None, UniqueRequestToken=None, AssignmentReviewPolicy=None, HITRevie... | python | def create_hit(MaxAssignments=None, AutoApprovalDelayInSeconds=None, LifetimeInSeconds=None, AssignmentDurationInSeconds=None, Reward=None, Title=None, Keywords=None, Description=None, Question=None, RequesterAnnotation=None, QualificationRequirements=None, UniqueRequestToken=None, AssignmentReviewPolicy=None, HITRevie... | [
"def",
"create_hit",
"(",
"MaxAssignments",
"=",
"None",
",",
"AutoApprovalDelayInSeconds",
"=",
"None",
",",
"LifetimeInSeconds",
"=",
"None",
",",
"AssignmentDurationInSeconds",
"=",
"None",
",",
"Reward",
"=",
"None",
",",
"Title",
"=",
"None",
",",
"Keywords... | The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website.
This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of a... | [
"The",
"CreateHIT",
"operation",
"creates",
"a",
"new",
"Human",
"Intelligence",
"Task",
"(",
"HIT",
")",
".",
"The",
"new",
"HIT",
"is",
"made",
"available",
"for",
"Workers",
"to",
"find",
"and",
"accept",
"on",
"the",
"Amazon",
"Mechanical",
"Turk",
"we... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/mturk.py#L195-L442 |
wavycloud/pyboto3 | pyboto3/mturk.py | create_hit_with_hit_type | def create_hit_with_hit_type(HITTypeId=None, MaxAssignments=None, LifetimeInSeconds=None, Question=None, RequesterAnnotation=None, UniqueRequestToken=None, AssignmentReviewPolicy=None, HITReviewPolicy=None, HITLayoutId=None, HITLayoutParameters=None):
"""
The CreateHITWithHITType operation creates a new Human I... | python | def create_hit_with_hit_type(HITTypeId=None, MaxAssignments=None, LifetimeInSeconds=None, Question=None, RequesterAnnotation=None, UniqueRequestToken=None, AssignmentReviewPolicy=None, HITReviewPolicy=None, HITLayoutId=None, HITLayoutParameters=None):
"""
The CreateHITWithHITType operation creates a new Human I... | [
"def",
"create_hit_with_hit_type",
"(",
"HITTypeId",
"=",
"None",
",",
"MaxAssignments",
"=",
"None",
",",
"LifetimeInSeconds",
"=",
"None",
",",
"Question",
"=",
"None",
",",
"RequesterAnnotation",
"=",
"None",
",",
"UniqueRequestToken",
"=",
"None",
",",
"Assi... | The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation.
This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
... | [
"The",
"CreateHITWithHITType",
"operation",
"creates",
"a",
"new",
"Human",
"Intelligence",
"Task",
"(",
"HIT",
")",
"using",
"an",
"existing",
"HITTypeID",
"generated",
"by",
"the",
"CreateHITType",
"operation",
".",
"This",
"is",
"an",
"alternative",
"way",
"t... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/mturk.py#L527-L715 |
wavycloud/pyboto3 | pyboto3/mturk.py | create_qualification_type | def create_qualification_type(Name=None, Keywords=None, Description=None, QualificationTypeStatus=None, RetryDelayInSeconds=None, Test=None, AnswerKey=None, TestDurationInSeconds=None, AutoGranted=None, AutoGrantedValue=None):
"""
The CreateQualificationType operation creates a new Qualification type, which is ... | python | def create_qualification_type(Name=None, Keywords=None, Description=None, QualificationTypeStatus=None, RetryDelayInSeconds=None, Test=None, AnswerKey=None, TestDurationInSeconds=None, AutoGranted=None, AutoGrantedValue=None):
"""
The CreateQualificationType operation creates a new Qualification type, which is ... | [
"def",
"create_qualification_type",
"(",
"Name",
"=",
"None",
",",
"Keywords",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"QualificationTypeStatus",
"=",
"None",
",",
"RetryDelayInSeconds",
"=",
"None",
",",
"Test",
"=",
"None",
",",
"AnswerKey",
"=",
... | The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.
See also: AWS API Documentation
:example: response = client.create_qualification_type(
Name='string',
Keywords='string',
Description='string',
... | [
"The",
"CreateQualificationType",
"operation",
"creates",
"a",
"new",
"Qualification",
"type",
"which",
"is",
"represented",
"by",
"a",
"QualificationType",
"data",
"structure",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/mturk.py#L717-L805 |
wavycloud/pyboto3 | pyboto3/mturk.py | update_qualification_type | def update_qualification_type(QualificationTypeId=None, Description=None, QualificationTypeStatus=None, Test=None, AnswerKey=None, TestDurationInSeconds=None, RetryDelayInSeconds=None, AutoGranted=None, AutoGrantedValue=None):
"""
The UpdateQualificationType operation modifies the attributes of an existing Qual... | python | def update_qualification_type(QualificationTypeId=None, Description=None, QualificationTypeStatus=None, Test=None, AnswerKey=None, TestDurationInSeconds=None, RetryDelayInSeconds=None, AutoGranted=None, AutoGrantedValue=None):
"""
The UpdateQualificationType operation modifies the attributes of an existing Qual... | [
"def",
"update_qualification_type",
"(",
"QualificationTypeId",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"QualificationTypeStatus",
"=",
"None",
",",
"Test",
"=",
"None",
",",
"AnswerKey",
"=",
"None",
",",
"TestDurationInSeconds",
"=",
"None",
",",
"R... | The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes.
Most attributes of a Qualification type can be changed after the type has been created. Howev... | [
"The",
"UpdateQualificationType",
"operation",
"modifies",
"the",
"attributes",
"of",
"an",
"existing",
"Qualification",
"type",
"which",
"is",
"represented",
"by",
"a",
"QualificationType",
"data",
"structure",
".",
"Only",
"the",
"owner",
"of",
"a",
"Qualification... | train | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/mturk.py#L2271-L2351 |
bdauvergne/python-oath | oath/_ocra.py | str2hashalgo | def str2hashalgo(description):
'''Convert the name of a hash algorithm as described in the OATH
specifications, to a python object handling the digest algorithm
interface, PEP-xxx.
:param description
the name of the hash algorithm, example
:rtype: a hash algorithm class const... | python | def str2hashalgo(description):
'''Convert the name of a hash algorithm as described in the OATH
specifications, to a python object handling the digest algorithm
interface, PEP-xxx.
:param description
the name of the hash algorithm, example
:rtype: a hash algorithm class const... | [
"def",
"str2hashalgo",
"(",
"description",
")",
":",
"algo",
"=",
"getattr",
"(",
"hashlib",
",",
"description",
".",
"lower",
"(",
")",
",",
"None",
")",
"if",
"not",
"callable",
"(",
"algo",
")",
":",
"raise",
"ValueError",
"(",
"'Unknown hash algorithm ... | Convert the name of a hash algorithm as described in the OATH
specifications, to a python object handling the digest algorithm
interface, PEP-xxx.
:param description
the name of the hash algorithm, example
:rtype: a hash algorithm class constructor | [
"Convert",
"the",
"name",
"of",
"a",
"hash",
"algorithm",
"as",
"described",
"in",
"the",
"OATH",
"specifications",
"to",
"a",
"python",
"object",
"handling",
"the",
"digest",
"algorithm",
"interface",
"PEP",
"-",
"xxx",
"."
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_ocra.py#L73-L85 |
bdauvergne/python-oath | oath/_ocra.py | str2cryptofunction | def str2cryptofunction(crypto_function_description):
'''
Convert an OCRA crypto function description into a CryptoFunction
instance
:param crypto_function_description:
:returns:
the CryptoFunction object
:rtype: CryptoFunction
'''
s = crypto_function_descriptio... | python | def str2cryptofunction(crypto_function_description):
'''
Convert an OCRA crypto function description into a CryptoFunction
instance
:param crypto_function_description:
:returns:
the CryptoFunction object
:rtype: CryptoFunction
'''
s = crypto_function_descriptio... | [
"def",
"str2cryptofunction",
"(",
"crypto_function_description",
")",
":",
"s",
"=",
"crypto_function_description",
".",
"split",
"(",
"'-'",
")",
"if",
"len",
"(",
"s",
")",
"!=",
"3",
":",
"raise",
"ValueError",
"(",
"'CryptoFunction description must be triplet se... | Convert an OCRA crypto function description into a CryptoFunction
instance
:param crypto_function_description:
:returns:
the CryptoFunction object
:rtype: CryptoFunction | [
"Convert",
"an",
"OCRA",
"crypto",
"function",
"description",
"into",
"a",
"CryptoFunction",
"instance"
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_ocra.py#L87-L109 |
bdauvergne/python-oath | oath/_hotp.py | hotp | def hotp(key,counter,format='dec6',hash=hashlib.sha1):
'''
Compute a HOTP value as prescribed by RFC4226
:param key:
the HOTP secret key given as an hexadecimal string
:param counter:
the OTP generation counter
:param format:
the output format, can be:
... | python | def hotp(key,counter,format='dec6',hash=hashlib.sha1):
'''
Compute a HOTP value as prescribed by RFC4226
:param key:
the HOTP secret key given as an hexadecimal string
:param counter:
the OTP generation counter
:param format:
the output format, can be:
... | [
"def",
"hotp",
"(",
"key",
",",
"counter",
",",
"format",
"=",
"'dec6'",
",",
"hash",
"=",
"hashlib",
".",
"sha1",
")",
":",
"bin_hotp",
"=",
"__hotp",
"(",
"key",
",",
"counter",
",",
"hash",
")",
"if",
"format",
"==",
"'dec4'",
":",
"return",
"de... | Compute a HOTP value as prescribed by RFC4226
:param key:
the HOTP secret key given as an hexadecimal string
:param counter:
the OTP generation counter
:param format:
the output format, can be:
- hex, for a variable length hexadecimal format,
... | [
"Compute",
"a",
"HOTP",
"value",
"as",
"prescribed",
"by",
"RFC4226"
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_hotp.py#L43-L91 |
bdauvergne/python-oath | oath/_hotp.py | accept_hotp | def accept_hotp(key, response, counter, format='dec6', hash=hashlib.sha1,
drift=3, backward_drift=0):
'''
Validate a HOTP value inside a window of
[counter-backward_drift:counter+forward_drift]
:param key:
the shared secret
:type key:
hexadecimal string of ... | python | def accept_hotp(key, response, counter, format='dec6', hash=hashlib.sha1,
drift=3, backward_drift=0):
'''
Validate a HOTP value inside a window of
[counter-backward_drift:counter+forward_drift]
:param key:
the shared secret
:type key:
hexadecimal string of ... | [
"def",
"accept_hotp",
"(",
"key",
",",
"response",
",",
"counter",
",",
"format",
"=",
"'dec6'",
",",
"hash",
"=",
"hashlib",
".",
"sha1",
",",
"drift",
"=",
"3",
",",
"backward_drift",
"=",
"0",
")",
":",
"for",
"i",
"in",
"range",
"(",
"-",
"back... | Validate a HOTP value inside a window of
[counter-backward_drift:counter+forward_drift]
:param key:
the shared secret
:type key:
hexadecimal string of even length
:param response:
the OTP to check
:type response:
ASCII string
:param ... | [
"Validate",
"a",
"HOTP",
"value",
"inside",
"a",
"window",
"of",
"[",
"counter",
"-",
"backward_drift",
":",
"counter",
"+",
"forward_drift",
"]"
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_hotp.py#L93-L157 |
bdauvergne/python-oath | oath/_totp.py | totp | def totp(key, format='dec6', period=30, t=None, hash=hashlib.sha1):
'''
Compute a TOTP value as prescribed by OATH specifications.
:param key:
the TOTP key given as an hexadecimal string
:param format:
the output format, can be:
- hex, for a variable length ... | python | def totp(key, format='dec6', period=30, t=None, hash=hashlib.sha1):
'''
Compute a TOTP value as prescribed by OATH specifications.
:param key:
the TOTP key given as an hexadecimal string
:param format:
the output format, can be:
- hex, for a variable length ... | [
"def",
"totp",
"(",
"key",
",",
"format",
"=",
"'dec6'",
",",
"period",
"=",
"30",
",",
"t",
"=",
"None",
",",
"hash",
"=",
"hashlib",
".",
"sha1",
")",
":",
"if",
"t",
"is",
"None",
":",
"t",
"=",
"int",
"(",
"time",
".",
"time",
"(",
")",
... | Compute a TOTP value as prescribed by OATH specifications.
:param key:
the TOTP key given as an hexadecimal string
:param format:
the output format, can be:
- hex, for a variable length hexadecimal format,
- hex-notrunc, for a 40 characters hexadecimal no... | [
"Compute",
"a",
"TOTP",
"value",
"as",
"prescribed",
"by",
"OATH",
"specifications",
"."
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_totp.py#L24-L62 |
bdauvergne/python-oath | oath/_totp.py | accept_totp | def accept_totp(key, response, format='dec6', period=30, t=None,
hash=hashlib.sha1, forward_drift=1, backward_drift=1, drift=0):
'''
Validate a TOTP value inside a window of
[drift-bacward_drift:drift+forward_drift] of time steps.
Where drift is the drift obtained during the last call ... | python | def accept_totp(key, response, format='dec6', period=30, t=None,
hash=hashlib.sha1, forward_drift=1, backward_drift=1, drift=0):
'''
Validate a TOTP value inside a window of
[drift-bacward_drift:drift+forward_drift] of time steps.
Where drift is the drift obtained during the last call ... | [
"def",
"accept_totp",
"(",
"key",
",",
"response",
",",
"format",
"=",
"'dec6'",
",",
"period",
"=",
"30",
",",
"t",
"=",
"None",
",",
"hash",
"=",
"hashlib",
".",
"sha1",
",",
"forward_drift",
"=",
"1",
",",
"backward_drift",
"=",
"1",
",",
"drift",... | Validate a TOTP value inside a window of
[drift-bacward_drift:drift+forward_drift] of time steps.
Where drift is the drift obtained during the last call to accept_totp.
:param response:
a string representing the OTP to check, its format should correspond
to the format parame... | [
"Validate",
"a",
"TOTP",
"value",
"inside",
"a",
"window",
"of",
"[",
"drift",
"-",
"bacward_drift",
":",
"drift",
"+",
"forward_drift",
"]",
"of",
"time",
"steps",
".",
"Where",
"drift",
"is",
"the",
"drift",
"obtained",
"during",
"the",
"last",
"call",
... | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/_totp.py#L64-L132 |
bdauvergne/python-oath | oath/google_authenticator.py | from_b32key | def from_b32key(b32_key, state=None):
'''Some phone app directly accept a partial b32 encoding, we try to emulate that'''
try:
lenient_b32decode(b32_key)
except TypeError:
raise ValueError('invalid base32 value')
return GoogleAuthenticator('otpauth://totp/xxx?%s' %
urlencode(... | python | def from_b32key(b32_key, state=None):
'''Some phone app directly accept a partial b32 encoding, we try to emulate that'''
try:
lenient_b32decode(b32_key)
except TypeError:
raise ValueError('invalid base32 value')
return GoogleAuthenticator('otpauth://totp/xxx?%s' %
urlencode(... | [
"def",
"from_b32key",
"(",
"b32_key",
",",
"state",
"=",
"None",
")",
":",
"try",
":",
"lenient_b32decode",
"(",
"b32_key",
")",
"except",
"TypeError",
":",
"raise",
"ValueError",
"(",
"'invalid base32 value'",
")",
"return",
"GoogleAuthenticator",
"(",
"'otpaut... | Some phone app directly accept a partial b32 encoding, we try to emulate that | [
"Some",
"phone",
"app",
"directly",
"accept",
"a",
"partial",
"b32",
"encoding",
"we",
"try",
"to",
"emulate",
"that"
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/google_authenticator.py#L103-L110 |
bdauvergne/python-oath | oath/google_authenticator.py | GoogleAuthenticatorURI.generate | def generate(self,
secret,
type='totp',
account='alex',
issuer=None,
algo='sha1',
digits=6,
init_counter=None):
"""
https://github.com/google/google-authenticator/wiki/Key-Uri-Format
... | python | def generate(self,
secret,
type='totp',
account='alex',
issuer=None,
algo='sha1',
digits=6,
init_counter=None):
"""
https://github.com/google/google-authenticator/wiki/Key-Uri-Format
... | [
"def",
"generate",
"(",
"self",
",",
"secret",
",",
"type",
"=",
"'totp'",
",",
"account",
"=",
"'alex'",
",",
"issuer",
"=",
"None",
",",
"algo",
"=",
"'sha1'",
",",
"digits",
"=",
"6",
",",
"init_counter",
"=",
"None",
")",
":",
"args",
"=",
"{",... | https://github.com/google/google-authenticator/wiki/Key-Uri-Format | [
"https",
":",
"//",
"github",
".",
"com",
"/",
"google",
"/",
"google",
"-",
"authenticator",
"/",
"wiki",
"/",
"Key",
"-",
"Uri",
"-",
"Format"
] | train | https://github.com/bdauvergne/python-oath/blob/c37cd63880b39032b9ba69cd1516e6fb06923e46/oath/google_authenticator.py#L178-L239 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | _convert_operator | def _convert_operator(op_name, attrs, identity_list=None, convert_map=None):
"""Convert from onnx operator to mxnet operator.
The converter must specify conversions explicitly for incompatible name, and
apply handlers to operator attributes.
Parameters
----------
op_name : str
Operator ... | python | def _convert_operator(op_name, attrs, identity_list=None, convert_map=None):
"""Convert from onnx operator to mxnet operator.
The converter must specify conversions explicitly for incompatible name, and
apply handlers to operator attributes.
Parameters
----------
op_name : str
Operator ... | [
"def",
"_convert_operator",
"(",
"op_name",
",",
"attrs",
",",
"identity_list",
"=",
"None",
",",
"convert_map",
"=",
"None",
")",
":",
"identity_list",
"=",
"identity_list",
"if",
"identity_list",
"else",
"_identity_list",
"convert_map",
"=",
"convert_map",
"if",... | Convert from onnx operator to mxnet operator.
The converter must specify conversions explicitly for incompatible name, and
apply handlers to operator attributes.
Parameters
----------
op_name : str
Operator name, such as Convolution, FullyConnected
attrs : dict
Dict of operator ... | [
"Convert",
"from",
"onnx",
"operator",
"to",
"mxnet",
"operator",
".",
"The",
"converter",
"must",
"specify",
"conversions",
"explicitly",
"for",
"incompatible",
"name",
"and",
"apply",
"handlers",
"to",
"operator",
"attributes",
"."
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L21-L55 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto.from_onnx | def from_onnx(self, graph):
"""Construct symbol from onnx graph.
The inputs from onnx graph is vague, only providing "1", "2"...
For convenience, we rename the `real` input names to "input_0",
"input_1"... And renaming parameters to "param_0", "param_1"...
Parameters
---... | python | def from_onnx(self, graph):
"""Construct symbol from onnx graph.
The inputs from onnx graph is vague, only providing "1", "2"...
For convenience, we rename the `real` input names to "input_0",
"input_1"... And renaming parameters to "param_0", "param_1"...
Parameters
---... | [
"def",
"from_onnx",
"(",
"self",
",",
"graph",
")",
":",
"# parse network inputs, aka parameters",
"for",
"init_tensor",
"in",
"graph",
".",
"initializer",
":",
"if",
"not",
"init_tensor",
".",
"name",
".",
"strip",
"(",
")",
":",
"raise",
"ValueError",
"(",
... | Construct symbol from onnx graph.
The inputs from onnx graph is vague, only providing "1", "2"...
For convenience, we rename the `real` input names to "input_0",
"input_1"... And renaming parameters to "param_0", "param_1"...
Parameters
----------
graph : onnx protobuf o... | [
"Construct",
"symbol",
"from",
"onnx",
"graph",
".",
"The",
"inputs",
"from",
"onnx",
"graph",
"is",
"vague",
"only",
"providing",
"1",
"2",
"...",
"For",
"convenience",
"we",
"rename",
"the",
"real",
"input",
"names",
"to",
"input_0",
"input_1",
"...",
"A... | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L68-L160 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_pooling | def _fix_pooling(self, op_name, inputs, new_attr):
"""onnx pooling operator supports asymmetrical padding
Adding pad operator before pooling in mxnet to work with onnx"""
pool_type = 'avg' if op_name == 'AveragePool' else 'max'
stride = new_attr.get('strides')
kernel = new_attr.g... | python | def _fix_pooling(self, op_name, inputs, new_attr):
"""onnx pooling operator supports asymmetrical padding
Adding pad operator before pooling in mxnet to work with onnx"""
pool_type = 'avg' if op_name == 'AveragePool' else 'max'
stride = new_attr.get('strides')
kernel = new_attr.g... | [
"def",
"_fix_pooling",
"(",
"self",
",",
"op_name",
",",
"inputs",
",",
"new_attr",
")",
":",
"pool_type",
"=",
"'avg'",
"if",
"op_name",
"==",
"'AveragePool'",
"else",
"'max'",
"stride",
"=",
"new_attr",
".",
"get",
"(",
"'strides'",
")",
"kernel",
"=",
... | onnx pooling operator supports asymmetrical padding
Adding pad operator before pooling in mxnet to work with onnx | [
"onnx",
"pooling",
"operator",
"supports",
"asymmetrical",
"padding",
"Adding",
"pad",
"operator",
"before",
"pooling",
"in",
"mxnet",
"to",
"work",
"with",
"onnx"
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L162-L173 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_slice | def _fix_slice(self, inputs, new_attr):
"""onnx slice provides slicing on multiple axis. Adding multiple slice_axis operator
for multiple axes from mxnet"""
begin = new_attr.get('begin')
end = new_attr.get('end')
axes = new_attr.get('axis', tuple(range(len(begin))))
slice... | python | def _fix_slice(self, inputs, new_attr):
"""onnx slice provides slicing on multiple axis. Adding multiple slice_axis operator
for multiple axes from mxnet"""
begin = new_attr.get('begin')
end = new_attr.get('end')
axes = new_attr.get('axis', tuple(range(len(begin))))
slice... | [
"def",
"_fix_slice",
"(",
"self",
",",
"inputs",
",",
"new_attr",
")",
":",
"begin",
"=",
"new_attr",
".",
"get",
"(",
"'begin'",
")",
"end",
"=",
"new_attr",
".",
"get",
"(",
"'end'",
")",
"axes",
"=",
"new_attr",
".",
"get",
"(",
"'axis'",
",",
"... | onnx slice provides slicing on multiple axis. Adding multiple slice_axis operator
for multiple axes from mxnet | [
"onnx",
"slice",
"provides",
"slicing",
"on",
"multiple",
"axis",
".",
"Adding",
"multiple",
"slice_axis",
"operator",
"for",
"multiple",
"axes",
"from",
"mxnet"
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L175-L185 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_squeeze | def _fix_squeeze(self, inputs, new_attr):
"""
MXNet doesnt have a squeeze operator.
Using "split" to perform similar operation.
"split" can be slower compared to "reshape".
This can have performance impact.
TODO: Remove this implementation once mxnet adds the support.
... | python | def _fix_squeeze(self, inputs, new_attr):
"""
MXNet doesnt have a squeeze operator.
Using "split" to perform similar operation.
"split" can be slower compared to "reshape".
This can have performance impact.
TODO: Remove this implementation once mxnet adds the support.
... | [
"def",
"_fix_squeeze",
"(",
"self",
",",
"inputs",
",",
"new_attr",
")",
":",
"axes",
"=",
"new_attr",
".",
"get",
"(",
"'axis'",
")",
"op",
"=",
"mx",
".",
"sym",
".",
"split",
"(",
"inputs",
"[",
"0",
"]",
",",
"axis",
"=",
"axes",
"[",
"0",
... | MXNet doesnt have a squeeze operator.
Using "split" to perform similar operation.
"split" can be slower compared to "reshape".
This can have performance impact.
TODO: Remove this implementation once mxnet adds the support. | [
"MXNet",
"doesnt",
"have",
"a",
"squeeze",
"operator",
".",
"Using",
"split",
"to",
"perform",
"similar",
"operation",
".",
"split",
"can",
"be",
"slower",
"compared",
"to",
"reshape",
".",
"This",
"can",
"have",
"performance",
"impact",
".",
"TODO",
":",
... | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L187-L199 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_max_min | def _fix_max_min(self, op_name, inputs):
""" MXNet maximum/minimum compares only two symbols at a time.
ONNX can send more than two to compare.
Breaking into multiple mxnet ops to compare two symbols at a time"""
if len(inputs) > 1:
if op_name == 'Max':
... | python | def _fix_max_min(self, op_name, inputs):
""" MXNet maximum/minimum compares only two symbols at a time.
ONNX can send more than two to compare.
Breaking into multiple mxnet ops to compare two symbols at a time"""
if len(inputs) > 1:
if op_name == 'Max':
... | [
"def",
"_fix_max_min",
"(",
"self",
",",
"op_name",
",",
"inputs",
")",
":",
"if",
"len",
"(",
"inputs",
")",
">",
"1",
":",
"if",
"op_name",
"==",
"'Max'",
":",
"op",
"=",
"mx",
".",
"sym",
".",
"maximum",
"(",
"inputs",
"[",
"0",
"]",
",",
"i... | MXNet maximum/minimum compares only two symbols at a time.
ONNX can send more than two to compare.
Breaking into multiple mxnet ops to compare two symbols at a time | [
"MXNet",
"maximum",
"/",
"minimum",
"compares",
"only",
"two",
"symbols",
"at",
"a",
"time",
".",
"ONNX",
"can",
"send",
"more",
"than",
"two",
"to",
"compare",
".",
"Breaking",
"into",
"multiple",
"mxnet",
"ops",
"to",
"compare",
"two",
"symbols",
"at",
... | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L201-L216 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_gemm | def _fix_gemm(self, op_name, inputs, old_attr):
"""Using FullyConnected operator in place of linalg_gemm to perform same operation"""
op = getattr(mx.sym, op_name, None)
alpha = float(old_attr.get('alpha', 1.0))
beta = float(old_attr.get('beta', 1.0))
transA = int(old_attr.get('t... | python | def _fix_gemm(self, op_name, inputs, old_attr):
"""Using FullyConnected operator in place of linalg_gemm to perform same operation"""
op = getattr(mx.sym, op_name, None)
alpha = float(old_attr.get('alpha', 1.0))
beta = float(old_attr.get('beta', 1.0))
transA = int(old_attr.get('t... | [
"def",
"_fix_gemm",
"(",
"self",
",",
"op_name",
",",
"inputs",
",",
"old_attr",
")",
":",
"op",
"=",
"getattr",
"(",
"mx",
".",
"sym",
",",
"op_name",
",",
"None",
")",
"alpha",
"=",
"float",
"(",
"old_attr",
".",
"get",
"(",
"'alpha'",
",",
"1.0"... | Using FullyConnected operator in place of linalg_gemm to perform same operation | [
"Using",
"FullyConnected",
"operator",
"in",
"place",
"of",
"linalg_gemm",
"to",
"perform",
"same",
"operation"
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L219-L232 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._parse_array | def _parse_array(self, tensor_proto):
"""Grab data in TensorProto and convert to numpy array."""
try:
from onnx.numpy_helper import to_array
except ImportError as e:
raise ImportError("Unable to import onnx which is required {}".format(e))
np_array = to_array(tens... | python | def _parse_array(self, tensor_proto):
"""Grab data in TensorProto and convert to numpy array."""
try:
from onnx.numpy_helper import to_array
except ImportError as e:
raise ImportError("Unable to import onnx which is required {}".format(e))
np_array = to_array(tens... | [
"def",
"_parse_array",
"(",
"self",
",",
"tensor_proto",
")",
":",
"try",
":",
"from",
"onnx",
".",
"numpy_helper",
"import",
"to_array",
"except",
"ImportError",
"as",
"e",
":",
"raise",
"ImportError",
"(",
"\"Unable to import onnx which is required {}\"",
".",
"... | Grab data in TensorProto and convert to numpy array. | [
"Grab",
"data",
"in",
"TensorProto",
"and",
"convert",
"to",
"numpy",
"array",
"."
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L234-L241 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._parse_attr | def _parse_attr(self, attr_proto):
"""Convert a list of AttributeProto to a dict, with names as keys."""
attrs = {}
for a in attr_proto:
for f in ['f', 'i', 's']:
if a.HasField(f):
attrs[a.name] = getattr(a, f)
for f in ['floats', 'ints... | python | def _parse_attr(self, attr_proto):
"""Convert a list of AttributeProto to a dict, with names as keys."""
attrs = {}
for a in attr_proto:
for f in ['f', 'i', 's']:
if a.HasField(f):
attrs[a.name] = getattr(a, f)
for f in ['floats', 'ints... | [
"def",
"_parse_attr",
"(",
"self",
",",
"attr_proto",
")",
":",
"attrs",
"=",
"{",
"}",
"for",
"a",
"in",
"attr_proto",
":",
"for",
"f",
"in",
"[",
"'f'",
",",
"'i'",
",",
"'s'",
"]",
":",
"if",
"a",
".",
"HasField",
"(",
"f",
")",
":",
"attrs"... | Convert a list of AttributeProto to a dict, with names as keys. | [
"Convert",
"a",
"list",
"of",
"AttributeProto",
"to",
"a",
"dict",
"with",
"names",
"as",
"keys",
"."
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L243-L262 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_outputs | def _fix_outputs(self, op, outputs):
"""A workaround to handle dropout or similar operator that have more than one out
in ONNX.
"""
if op == 'Dropout':
assert len(outputs) == 2, "ONNX have two outputs for dropout layer."
outputs = outputs[:-1]
return outpu... | python | def _fix_outputs(self, op, outputs):
"""A workaround to handle dropout or similar operator that have more than one out
in ONNX.
"""
if op == 'Dropout':
assert len(outputs) == 2, "ONNX have two outputs for dropout layer."
outputs = outputs[:-1]
return outpu... | [
"def",
"_fix_outputs",
"(",
"self",
",",
"op",
",",
"outputs",
")",
":",
"if",
"op",
"==",
"'Dropout'",
":",
"assert",
"len",
"(",
"outputs",
")",
"==",
"2",
",",
"\"ONNX have two outputs for dropout layer.\"",
"outputs",
"=",
"outputs",
"[",
":",
"-",
"1"... | A workaround to handle dropout or similar operator that have more than one out
in ONNX. | [
"A",
"workaround",
"to",
"handle",
"dropout",
"or",
"similar",
"operator",
"that",
"have",
"more",
"than",
"one",
"out",
"in",
"ONNX",
"."
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L264-L271 |
onnx/onnx-mxnet | onnx_mxnet/import_onnx.py | GraphProto._fix_bias | def _fix_bias(self, op, attrs, num_inputs):
"""A workaround for 'use_bias' attribute since onnx don't provide this attribute,
we have to check the number of inputs to decide it."""
if op not in [mx.sym.Convolution, mx.sym.Deconvolution, mx.sym.FullyConnected]:
return attrs
if... | python | def _fix_bias(self, op, attrs, num_inputs):
"""A workaround for 'use_bias' attribute since onnx don't provide this attribute,
we have to check the number of inputs to decide it."""
if op not in [mx.sym.Convolution, mx.sym.Deconvolution, mx.sym.FullyConnected]:
return attrs
if... | [
"def",
"_fix_bias",
"(",
"self",
",",
"op",
",",
"attrs",
",",
"num_inputs",
")",
":",
"if",
"op",
"not",
"in",
"[",
"mx",
".",
"sym",
".",
"Convolution",
",",
"mx",
".",
"sym",
".",
"Deconvolution",
",",
"mx",
".",
"sym",
".",
"FullyConnected",
"]... | A workaround for 'use_bias' attribute since onnx don't provide this attribute,
we have to check the number of inputs to decide it. | [
"A",
"workaround",
"for",
"use_bias",
"attribute",
"since",
"onnx",
"don",
"t",
"provide",
"this",
"attribute",
"we",
"have",
"to",
"check",
"the",
"number",
"of",
"inputs",
"to",
"decide",
"it",
"."
] | train | https://github.com/onnx/onnx-mxnet/blob/b602d75c5a01f5ed8f68b11150a06374f058a86b/onnx_mxnet/import_onnx.py#L273-L284 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.