repo stringlengths 7 55 | path stringlengths 4 223 | func_name stringlengths 1 134 | original_string stringlengths 75 104k | language stringclasses 1
value | code stringlengths 75 104k | code_tokens listlengths 19 28.4k | docstring stringlengths 1 46.9k | docstring_tokens listlengths 1 1.97k | sha stringlengths 40 40 | url stringlengths 87 315 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
ga4gh/ga4gh-server | ga4gh/server/datamodel/genotype_phenotype.py | G2PUtility._getPrefixURL | def _getPrefixURL(self, url):
"""
Given a url return namespace prefix.
Leverages prefixes already in graph namespace
Ex. "http://www.drugbank.ca/drugs/DDD"
-> "http://www.drugbank.ca/drugs/"
"""
for prefix, namespace in self._rdfGraph.namespaces():
... | python | def _getPrefixURL(self, url):
"""
Given a url return namespace prefix.
Leverages prefixes already in graph namespace
Ex. "http://www.drugbank.ca/drugs/DDD"
-> "http://www.drugbank.ca/drugs/"
"""
for prefix, namespace in self._rdfGraph.namespaces():
... | [
"def",
"_getPrefixURL",
"(",
"self",
",",
"url",
")",
":",
"for",
"prefix",
",",
"namespace",
"in",
"self",
".",
"_rdfGraph",
".",
"namespaces",
"(",
")",
":",
"if",
"namespace",
".",
"toPython",
"(",
")",
"in",
"url",
":",
"return",
"namespace"
] | Given a url return namespace prefix.
Leverages prefixes already in graph namespace
Ex. "http://www.drugbank.ca/drugs/DDD"
-> "http://www.drugbank.ca/drugs/" | [
"Given",
"a",
"url",
"return",
"namespace",
"prefix",
".",
"Leverages",
"prefixes",
"already",
"in",
"graph",
"namespace",
"Ex",
".",
"http",
":",
"//",
"www",
".",
"drugbank",
".",
"ca",
"/",
"drugs",
"/",
"DDD",
"-",
">",
"http",
":",
"//",
"www",
... | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L353-L362 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/genotype_phenotype.py | G2PUtility._toGA4GH | def _toGA4GH(self, association, featureSets=[]):
"""
given an association dict,
return a protocol.FeaturePhenotypeAssociation
"""
# The association dict has the keys: environment, environment
# label, evidence, feature label, phenotype and sources. Each
# key's v... | python | def _toGA4GH(self, association, featureSets=[]):
"""
given an association dict,
return a protocol.FeaturePhenotypeAssociation
"""
# The association dict has the keys: environment, environment
# label, evidence, feature label, phenotype and sources. Each
# key's v... | [
"def",
"_toGA4GH",
"(",
"self",
",",
"association",
",",
"featureSets",
"=",
"[",
"]",
")",
":",
"# The association dict has the keys: environment, environment",
"# label, evidence, feature label, phenotype and sources. Each",
"# key's value is a dict with the RDF predicates as keys an... | given an association dict,
return a protocol.FeaturePhenotypeAssociation | [
"given",
"an",
"association",
"dict",
"return",
"a",
"protocol",
".",
"FeaturePhenotypeAssociation"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L364-L440 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/genotype_phenotype.py | RdfPhenotypeAssociationSet.getAssociations | def getAssociations(
self, request=None, featureSets=[]):
"""
This query is the main search mechanism.
It queries the graph for annotations that match the
AND of [feature,environment,phenotype].
"""
if len(featureSets) == 0:
featureSets = self.getP... | python | def getAssociations(
self, request=None, featureSets=[]):
"""
This query is the main search mechanism.
It queries the graph for annotations that match the
AND of [feature,environment,phenotype].
"""
if len(featureSets) == 0:
featureSets = self.getP... | [
"def",
"getAssociations",
"(",
"self",
",",
"request",
"=",
"None",
",",
"featureSets",
"=",
"[",
"]",
")",
":",
"if",
"len",
"(",
"featureSets",
")",
"==",
"0",
":",
"featureSets",
"=",
"self",
".",
"getParentContainer",
"(",
")",
".",
"getFeatureSets",... | This query is the main search mechanism.
It queries the graph for annotations that match the
AND of [feature,environment,phenotype]. | [
"This",
"query",
"is",
"the",
"main",
"search",
"mechanism",
".",
"It",
"queries",
"the",
"graph",
"for",
"annotations",
"that",
"match",
"the",
"AND",
"of",
"[",
"feature",
"environment",
"phenotype",
"]",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L474-L524 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/genotype_phenotype.py | RdfPhenotypeAssociationSet._formatFilterQuery | def _formatFilterQuery(self, request=None, featureSets=[]):
"""
Generate a formatted sparql query with appropriate filters
"""
query = self._baseQuery()
filters = []
if issubclass(request.__class__,
protocol.SearchGenotypePhenotypeRequest):
... | python | def _formatFilterQuery(self, request=None, featureSets=[]):
"""
Generate a formatted sparql query with appropriate filters
"""
query = self._baseQuery()
filters = []
if issubclass(request.__class__,
protocol.SearchGenotypePhenotypeRequest):
... | [
"def",
"_formatFilterQuery",
"(",
"self",
",",
"request",
"=",
"None",
",",
"featureSets",
"=",
"[",
"]",
")",
":",
"query",
"=",
"self",
".",
"_baseQuery",
"(",
")",
"filters",
"=",
"[",
"]",
"if",
"issubclass",
"(",
"request",
".",
"__class__",
",",
... | Generate a formatted sparql query with appropriate filters | [
"Generate",
"a",
"formatted",
"sparql",
"query",
"with",
"appropriate",
"filters"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L526-L545 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/genotype_phenotype.py | RdfPhenotypeAssociationSet._filterSearchPhenotypesRequest | def _filterSearchPhenotypesRequest(self, request):
"""
Filters request for phenotype search requests
"""
filters = []
if request.id:
filters.append("?phenotype = <{}>".format(request.id))
if request.description:
filters.append(
're... | python | def _filterSearchPhenotypesRequest(self, request):
"""
Filters request for phenotype search requests
"""
filters = []
if request.id:
filters.append("?phenotype = <{}>".format(request.id))
if request.description:
filters.append(
're... | [
"def",
"_filterSearchPhenotypesRequest",
"(",
"self",
",",
"request",
")",
":",
"filters",
"=",
"[",
"]",
"if",
"request",
".",
"id",
":",
"filters",
".",
"append",
"(",
"\"?phenotype = <{}>\"",
".",
"format",
"(",
"request",
".",
"id",
")",
")",
"if",
"... | Filters request for phenotype search requests | [
"Filters",
"request",
"for",
"phenotype",
"search",
"requests"
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L587-L615 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | WiggleReader.parseStep | def parseStep(self, line):
"""
Parse the line describing the mode.
One of:
variableStep chrom=<reference> [span=<window_size>]
fixedStep chrom=<reference> start=<position> step=<step_interval>
[span=<window_size>]
Span is optional, defaulting to 1. It ... | python | def parseStep(self, line):
"""
Parse the line describing the mode.
One of:
variableStep chrom=<reference> [span=<window_size>]
fixedStep chrom=<reference> start=<position> step=<step_interval>
[span=<window_size>]
Span is optional, defaulting to 1. It ... | [
"def",
"parseStep",
"(",
"self",
",",
"line",
")",
":",
"fields",
"=",
"dict",
"(",
"[",
"field",
".",
"split",
"(",
"'='",
")",
"for",
"field",
"in",
"line",
".",
"split",
"(",
")",
"[",
"1",
":",
"]",
"]",
")",
"if",
"'chrom'",
"in",
"fields"... | Parse the line describing the mode.
One of:
variableStep chrom=<reference> [span=<window_size>]
fixedStep chrom=<reference> start=<position> step=<step_interval>
[span=<window_size>]
Span is optional, defaulting to 1. It indicates that each value
applies to re... | [
"Parse",
"the",
"line",
"describing",
"the",
"mode",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L78-L107 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | WiggleReader.readWiggleLine | def readWiggleLine(self, line):
"""
Read a wiggle line. If it is a data line, add values to the
protocol object.
"""
if(line.isspace() or line.startswith("#")
or line.startswith("browser") or line.startswith("track")):
return
elif line.startswi... | python | def readWiggleLine(self, line):
"""
Read a wiggle line. If it is a data line, add values to the
protocol object.
"""
if(line.isspace() or line.startswith("#")
or line.startswith("browser") or line.startswith("track")):
return
elif line.startswi... | [
"def",
"readWiggleLine",
"(",
"self",
",",
"line",
")",
":",
"if",
"(",
"line",
".",
"isspace",
"(",
")",
"or",
"line",
".",
"startswith",
"(",
"\"#\"",
")",
"or",
"line",
".",
"startswith",
"(",
"\"browser\"",
")",
"or",
"line",
".",
"startswith",
"... | Read a wiggle line. If it is a data line, add values to the
protocol object. | [
"Read",
"a",
"wiggle",
"line",
".",
"If",
"it",
"is",
"a",
"data",
"line",
"add",
"values",
"to",
"the",
"protocol",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L109-L152 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | WiggleReader.wiggleFileHandleToProtocol | def wiggleFileHandleToProtocol(self, fileHandle):
"""
Return a continuous protocol object satsifiying the given query
parameters from the given wiggle file handle.
"""
for line in fileHandle:
self.readWiggleLine(line)
return self._data | python | def wiggleFileHandleToProtocol(self, fileHandle):
"""
Return a continuous protocol object satsifiying the given query
parameters from the given wiggle file handle.
"""
for line in fileHandle:
self.readWiggleLine(line)
return self._data | [
"def",
"wiggleFileHandleToProtocol",
"(",
"self",
",",
"fileHandle",
")",
":",
"for",
"line",
"in",
"fileHandle",
":",
"self",
".",
"readWiggleLine",
"(",
"line",
")",
"return",
"self",
".",
"_data"
] | Return a continuous protocol object satsifiying the given query
parameters from the given wiggle file handle. | [
"Return",
"a",
"continuous",
"protocol",
"object",
"satsifiying",
"the",
"given",
"query",
"parameters",
"from",
"the",
"given",
"wiggle",
"file",
"handle",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L154-L161 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | BigWigDataSource.checkReference | def checkReference(self, reference):
"""
Check the reference for security. Tries to avoid any characters
necessary for doing a script injection.
"""
pattern = re.compile(r'[\s,;"\'&\\]')
if pattern.findall(reference.strip()):
return False
return True | python | def checkReference(self, reference):
"""
Check the reference for security. Tries to avoid any characters
necessary for doing a script injection.
"""
pattern = re.compile(r'[\s,;"\'&\\]')
if pattern.findall(reference.strip()):
return False
return True | [
"def",
"checkReference",
"(",
"self",
",",
"reference",
")",
":",
"pattern",
"=",
"re",
".",
"compile",
"(",
"r'[\\s,;\"\\'&\\\\]'",
")",
"if",
"pattern",
".",
"findall",
"(",
"reference",
".",
"strip",
"(",
")",
")",
":",
"return",
"False",
"return",
"T... | Check the reference for security. Tries to avoid any characters
necessary for doing a script injection. | [
"Check",
"the",
"reference",
"for",
"security",
".",
"Tries",
"to",
"avoid",
"any",
"characters",
"necessary",
"for",
"doing",
"a",
"script",
"injection",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L188-L196 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | BigWigDataSource.readValuesPyBigWig | def readValuesPyBigWig(self, reference, start, end):
"""
Use pyBigWig package to read a BigWig file for the
given range and return a protocol object.
pyBigWig returns an array of values that fill the query range.
Not sure if it is possible to get the step and span.
This... | python | def readValuesPyBigWig(self, reference, start, end):
"""
Use pyBigWig package to read a BigWig file for the
given range and return a protocol object.
pyBigWig returns an array of values that fill the query range.
Not sure if it is possible to get the step and span.
This... | [
"def",
"readValuesPyBigWig",
"(",
"self",
",",
"reference",
",",
"start",
",",
"end",
")",
":",
"if",
"not",
"self",
".",
"checkReference",
"(",
"reference",
")",
":",
"raise",
"exceptions",
".",
"ReferenceNameNotFoundException",
"(",
"reference",
")",
"if",
... | Use pyBigWig package to read a BigWig file for the
given range and return a protocol object.
pyBigWig returns an array of values that fill the query range.
Not sure if it is possible to get the step and span.
This method trims NaN values from the start and end.
pyBigWig throws... | [
"Use",
"pyBigWig",
"package",
"to",
"read",
"a",
"BigWig",
"file",
"for",
"the",
"given",
"range",
"and",
"return",
"a",
"protocol",
"object",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L198-L250 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | BigWigDataSource.readValuesBigWigToWig | def readValuesBigWigToWig(self, reference, start, end):
"""
Read a bigwig file and return a protocol object with values
within the query range.
This method uses the bigWigToWig command line tool from UCSC
GoldenPath. The tool is used to return values within a query region.
... | python | def readValuesBigWigToWig(self, reference, start, end):
"""
Read a bigwig file and return a protocol object with values
within the query range.
This method uses the bigWigToWig command line tool from UCSC
GoldenPath. The tool is used to return values within a query region.
... | [
"def",
"readValuesBigWigToWig",
"(",
"self",
",",
"reference",
",",
"start",
",",
"end",
")",
":",
"if",
"not",
"self",
".",
"checkReference",
"(",
"reference",
")",
":",
"raise",
"exceptions",
".",
"ReferenceNameNotFoundException",
"(",
"reference",
")",
"if"... | Read a bigwig file and return a protocol object with values
within the query range.
This method uses the bigWigToWig command line tool from UCSC
GoldenPath. The tool is used to return values within a query region.
The output is in wiggle format, which is processed by the WiggleReader
... | [
"Read",
"a",
"bigwig",
"file",
"and",
"return",
"a",
"protocol",
"object",
"with",
"values",
"within",
"the",
"query",
"range",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L252-L291 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | AbstractContinuousSet.toProtocolElement | def toProtocolElement(self):
"""
Returns the representation of this ContinuousSet as the corresponding
ProtocolElement.
"""
gaContinuousSet = protocol.ContinuousSet()
gaContinuousSet.id = self.getId()
gaContinuousSet.dataset_id = self.getParentContainer().getId()
... | python | def toProtocolElement(self):
"""
Returns the representation of this ContinuousSet as the corresponding
ProtocolElement.
"""
gaContinuousSet = protocol.ContinuousSet()
gaContinuousSet.id = self.getId()
gaContinuousSet.dataset_id = self.getParentContainer().getId()
... | [
"def",
"toProtocolElement",
"(",
"self",
")",
":",
"gaContinuousSet",
"=",
"protocol",
".",
"ContinuousSet",
"(",
")",
"gaContinuousSet",
".",
"id",
"=",
"self",
".",
"getId",
"(",
")",
"gaContinuousSet",
".",
"dataset_id",
"=",
"self",
".",
"getParentContaine... | Returns the representation of this ContinuousSet as the corresponding
ProtocolElement. | [
"Returns",
"the",
"representation",
"of",
"this",
"ContinuousSet",
"as",
"the",
"corresponding",
"ProtocolElement",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L324-L340 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | FileContinuousSet.populateFromRow | def populateFromRow(self, continuousSetRecord):
"""
Populates the instance variables of this ContinuousSet from the
specified DB row.
"""
self._filePath = continuousSetRecord.dataurl
self.setAttributesJson(continuousSetRecord.attributes) | python | def populateFromRow(self, continuousSetRecord):
"""
Populates the instance variables of this ContinuousSet from the
specified DB row.
"""
self._filePath = continuousSetRecord.dataurl
self.setAttributesJson(continuousSetRecord.attributes) | [
"def",
"populateFromRow",
"(",
"self",
",",
"continuousSetRecord",
")",
":",
"self",
".",
"_filePath",
"=",
"continuousSetRecord",
".",
"dataurl",
"self",
".",
"setAttributesJson",
"(",
"continuousSetRecord",
".",
"attributes",
")"
] | Populates the instance variables of this ContinuousSet from the
specified DB row. | [
"Populates",
"the",
"instance",
"variables",
"of",
"this",
"ContinuousSet",
"from",
"the",
"specified",
"DB",
"row",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L358-L364 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | FileContinuousSet.getContinuous | def getContinuous(self, referenceName=None, start=None, end=None):
"""
Method passed to runSearchRequest to fulfill the request to
yield continuous protocol objects that satisfy the given query.
:param str referenceName: name of reference (ex: "chr1")
:param start: castable to i... | python | def getContinuous(self, referenceName=None, start=None, end=None):
"""
Method passed to runSearchRequest to fulfill the request to
yield continuous protocol objects that satisfy the given query.
:param str referenceName: name of reference (ex: "chr1")
:param start: castable to i... | [
"def",
"getContinuous",
"(",
"self",
",",
"referenceName",
"=",
"None",
",",
"start",
"=",
"None",
",",
"end",
"=",
"None",
")",
":",
"bigWigReader",
"=",
"BigWigDataSource",
"(",
"self",
".",
"_filePath",
")",
"for",
"continuousObj",
"in",
"bigWigReader",
... | Method passed to runSearchRequest to fulfill the request to
yield continuous protocol objects that satisfy the given query.
:param str referenceName: name of reference (ex: "chr1")
:param start: castable to int, start position on reference
:param end: castable to int, end position on re... | [
"Method",
"passed",
"to",
"runSearchRequest",
"to",
"fulfill",
"the",
"request",
"to",
"yield",
"continuous",
"protocol",
"objects",
"that",
"satisfy",
"the",
"given",
"query",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L372-L385 | train |
ga4gh/ga4gh-server | ga4gh/server/datamodel/continuous.py | SimulatedContinuousSet.getContinuousData | def getContinuousData(self, referenceName=None, start=None, end=None):
"""
Returns a set number of simulated continuous data.
:param referenceName: name of reference to "search" on
:param start: start coordinate of query
:param end: end coordinate of query
:return: Yield... | python | def getContinuousData(self, referenceName=None, start=None, end=None):
"""
Returns a set number of simulated continuous data.
:param referenceName: name of reference to "search" on
:param start: start coordinate of query
:param end: end coordinate of query
:return: Yield... | [
"def",
"getContinuousData",
"(",
"self",
",",
"referenceName",
"=",
"None",
",",
"start",
"=",
"None",
",",
"end",
"=",
"None",
")",
":",
"randomNumberGenerator",
"=",
"random",
".",
"Random",
"(",
")",
"randomNumberGenerator",
".",
"seed",
"(",
"self",
".... | Returns a set number of simulated continuous data.
:param referenceName: name of reference to "search" on
:param start: start coordinate of query
:param end: end coordinate of query
:return: Yields continuous list | [
"Returns",
"a",
"set",
"number",
"of",
"simulated",
"continuous",
"data",
"."
] | 1aa18922ef136db8604f6f098cb1732cba6f2a76 | https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L401-L420 | train |
napalm-automation/napalm-base | napalm_base/base.py | NetworkDriver.load_template | def load_template(self, template_name, template_source=None,
template_path=None, **template_vars):
"""
Will load a templated configuration on the device.
:param cls: Instance of the driver class.
:param template_name: Identifies the template name.
:param te... | python | def load_template(self, template_name, template_source=None,
template_path=None, **template_vars):
"""
Will load a templated configuration on the device.
:param cls: Instance of the driver class.
:param template_name: Identifies the template name.
:param te... | [
"def",
"load_template",
"(",
"self",
",",
"template_name",
",",
"template_source",
"=",
"None",
",",
"template_path",
"=",
"None",
",",
"*",
"*",
"template_vars",
")",
":",
"return",
"napalm_base",
".",
"helpers",
".",
"load_template",
"(",
"self",
",",
"tem... | Will load a templated configuration on the device.
:param cls: Instance of the driver class.
:param template_name: Identifies the template name.
:param template_source (optional): Custom config template rendered and loaded on device
:param template_path (optional): Absolute path to dire... | [
"Will",
"load",
"a",
"templated",
"configuration",
"on",
"the",
"device",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/base.py#L118-L139 | train |
napalm-automation/napalm-base | napalm_base/base.py | NetworkDriver.ping | def ping(self, destination, source=c.PING_SOURCE, ttl=c.PING_TTL, timeout=c.PING_TIMEOUT,
size=c.PING_SIZE, count=c.PING_COUNT, vrf=c.PING_VRF):
"""
Executes ping on the device and returns a dictionary with the result
:param destination: Host or IP Address of the destination
... | python | def ping(self, destination, source=c.PING_SOURCE, ttl=c.PING_TTL, timeout=c.PING_TIMEOUT,
size=c.PING_SIZE, count=c.PING_COUNT, vrf=c.PING_VRF):
"""
Executes ping on the device and returns a dictionary with the result
:param destination: Host or IP Address of the destination
... | [
"def",
"ping",
"(",
"self",
",",
"destination",
",",
"source",
"=",
"c",
".",
"PING_SOURCE",
",",
"ttl",
"=",
"c",
".",
"PING_TTL",
",",
"timeout",
"=",
"c",
".",
"PING_TIMEOUT",
",",
"size",
"=",
"c",
".",
"PING_SIZE",
",",
"count",
"=",
"c",
".",... | Executes ping on the device and returns a dictionary with the result
:param destination: Host or IP Address of the destination
:param source (optional): Source address of echo request
:param ttl (optional): Maximum number of hops
:param timeout (optional): Maximum seconds to wait after ... | [
"Executes",
"ping",
"on",
"the",
"device",
"and",
"returns",
"a",
"dictionary",
"with",
"the",
"result"
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/base.py#L1159-L1221 | train |
napalm-automation/napalm-base | napalm_base/mock.py | MockDevice.run_commands | def run_commands(self, commands):
"""Only useful for EOS"""
if "eos" in self.profile:
return list(self.parent.cli(commands).values())[0]
else:
raise AttributeError("MockedDriver instance has not attribute '_rpc'") | python | def run_commands(self, commands):
"""Only useful for EOS"""
if "eos" in self.profile:
return list(self.parent.cli(commands).values())[0]
else:
raise AttributeError("MockedDriver instance has not attribute '_rpc'") | [
"def",
"run_commands",
"(",
"self",
",",
"commands",
")",
":",
"if",
"\"eos\"",
"in",
"self",
".",
"profile",
":",
"return",
"list",
"(",
"self",
".",
"parent",
".",
"cli",
"(",
"commands",
")",
".",
"values",
"(",
")",
")",
"[",
"0",
"]",
"else",
... | Only useful for EOS | [
"Only",
"useful",
"for",
"EOS"
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/mock.py#L88-L93 | train |
napalm-automation/napalm-base | napalm_base/helpers.py | textfsm_extractor | def textfsm_extractor(cls, template_name, raw_text):
"""
Applies a TextFSM template over a raw text and return the matching table.
Main usage of this method will be to extract data form a non-structured output
from a network device and return the values in a table format.
:param cls: Instance of t... | python | def textfsm_extractor(cls, template_name, raw_text):
"""
Applies a TextFSM template over a raw text and return the matching table.
Main usage of this method will be to extract data form a non-structured output
from a network device and return the values in a table format.
:param cls: Instance of t... | [
"def",
"textfsm_extractor",
"(",
"cls",
",",
"template_name",
",",
"raw_text",
")",
":",
"textfsm_data",
"=",
"list",
"(",
")",
"cls",
".",
"__class__",
".",
"__name__",
".",
"replace",
"(",
"'Driver'",
",",
"''",
")",
"current_dir",
"=",
"os",
".",
"pat... | Applies a TextFSM template over a raw text and return the matching table.
Main usage of this method will be to extract data form a non-structured output
from a network device and return the values in a table format.
:param cls: Instance of the driver class
:param template_name: Specifies the name of t... | [
"Applies",
"a",
"TextFSM",
"template",
"over",
"a",
"raw",
"text",
"and",
"return",
"the",
"matching",
"table",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L88-L138 | train |
napalm-automation/napalm-base | napalm_base/helpers.py | find_txt | def find_txt(xml_tree, path, default=''):
"""
Extracts the text value from an XML tree, using XPath.
In case of error, will return a default value.
:param xml_tree: the XML Tree object. Assumed is <type 'lxml.etree._Element'>.
:param path: XPath to be applied, in order to extract the desired da... | python | def find_txt(xml_tree, path, default=''):
"""
Extracts the text value from an XML tree, using XPath.
In case of error, will return a default value.
:param xml_tree: the XML Tree object. Assumed is <type 'lxml.etree._Element'>.
:param path: XPath to be applied, in order to extract the desired da... | [
"def",
"find_txt",
"(",
"xml_tree",
",",
"path",
",",
"default",
"=",
"''",
")",
":",
"value",
"=",
"''",
"try",
":",
"xpath_applied",
"=",
"xml_tree",
".",
"xpath",
"(",
"path",
")",
"# will consider the first match only",
"if",
"len",
"(",
"xpath_applied",... | Extracts the text value from an XML tree, using XPath.
In case of error, will return a default value.
:param xml_tree: the XML Tree object. Assumed is <type 'lxml.etree._Element'>.
:param path: XPath to be applied, in order to extract the desired data.
:param default: Value to be returned in case ... | [
"Extracts",
"the",
"text",
"value",
"from",
"an",
"XML",
"tree",
"using",
"XPath",
".",
"In",
"case",
"of",
"error",
"will",
"return",
"a",
"default",
"value",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L141-L162 | train |
napalm-automation/napalm-base | napalm_base/helpers.py | convert | def convert(to, who, default=u''):
"""
Converts data to a specific datatype.
In case of error, will return a default value.
:param to: datatype to be casted to.
:param who: value to cast.
:param default: value to return in case of error.
:return: a str value.
"""
if who is ... | python | def convert(to, who, default=u''):
"""
Converts data to a specific datatype.
In case of error, will return a default value.
:param to: datatype to be casted to.
:param who: value to cast.
:param default: value to return in case of error.
:return: a str value.
"""
if who is ... | [
"def",
"convert",
"(",
"to",
",",
"who",
",",
"default",
"=",
"u''",
")",
":",
"if",
"who",
"is",
"None",
":",
"return",
"default",
"try",
":",
"return",
"to",
"(",
"who",
")",
"except",
":",
"# noqa",
"return",
"default"
] | Converts data to a specific datatype.
In case of error, will return a default value.
:param to: datatype to be casted to.
:param who: value to cast.
:param default: value to return in case of error.
:return: a str value. | [
"Converts",
"data",
"to",
"a",
"specific",
"datatype",
".",
"In",
"case",
"of",
"error",
"will",
"return",
"a",
"default",
"value",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L165-L180 | train |
napalm-automation/napalm-base | napalm_base/helpers.py | mac | def mac(raw):
"""
Converts a raw string to a standardised MAC Address EUI Format.
:param raw: the raw string containing the value of the MAC Address
:return: a string with the MAC Address in EUI format
Example:
.. code-block:: python
>>> mac('0123.4567.89ab')
u'01:23:45:67:89... | python | def mac(raw):
"""
Converts a raw string to a standardised MAC Address EUI Format.
:param raw: the raw string containing the value of the MAC Address
:return: a string with the MAC Address in EUI format
Example:
.. code-block:: python
>>> mac('0123.4567.89ab')
u'01:23:45:67:89... | [
"def",
"mac",
"(",
"raw",
")",
":",
"if",
"raw",
".",
"endswith",
"(",
"':'",
")",
":",
"flat_raw",
"=",
"raw",
".",
"replace",
"(",
"':'",
",",
"''",
")",
"raw",
"=",
"'{flat_raw}{zeros_stuffed}'",
".",
"format",
"(",
"flat_raw",
"=",
"flat_raw",
",... | Converts a raw string to a standardised MAC Address EUI Format.
:param raw: the raw string containing the value of the MAC Address
:return: a string with the MAC Address in EUI format
Example:
.. code-block:: python
>>> mac('0123.4567.89ab')
u'01:23:45:67:89:AB'
Some vendors lik... | [
"Converts",
"a",
"raw",
"string",
"to",
"a",
"standardised",
"MAC",
"Address",
"EUI",
"Format",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L183-L218 | train |
napalm-automation/napalm-base | napalm_base/validate.py | compare_numeric | def compare_numeric(src_num, dst_num):
"""Compare numerical values. You can use '<%d','>%d'."""
dst_num = float(dst_num)
match = numeric_compare_regex.match(src_num)
if not match:
error = "Failed numeric comparison. Collected: {}. Expected: {}".format(dst_num, src_num)
raise ValueError(... | python | def compare_numeric(src_num, dst_num):
"""Compare numerical values. You can use '<%d','>%d'."""
dst_num = float(dst_num)
match = numeric_compare_regex.match(src_num)
if not match:
error = "Failed numeric comparison. Collected: {}. Expected: {}".format(dst_num, src_num)
raise ValueError(... | [
"def",
"compare_numeric",
"(",
"src_num",
",",
"dst_num",
")",
":",
"dst_num",
"=",
"float",
"(",
"dst_num",
")",
"match",
"=",
"numeric_compare_regex",
".",
"match",
"(",
"src_num",
")",
"if",
"not",
"match",
":",
"error",
"=",
"\"Failed numeric comparison. C... | Compare numerical values. You can use '<%d','>%d'. | [
"Compare",
"numerical",
"values",
".",
"You",
"can",
"use",
"<%d",
">",
"%d",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/validate.py#L150-L167 | train |
napalm-automation/napalm-base | napalm_base/utils/string_parsers.py | colon_separated_string_to_dict | def colon_separated_string_to_dict(string, separator=':'):
'''
Converts a string in the format:
Name: Et3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
MAC Address Learning: enabled
Access Mode VLAN: 3 (VLAN0003)
Trunking Native M... | python | def colon_separated_string_to_dict(string, separator=':'):
'''
Converts a string in the format:
Name: Et3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
MAC Address Learning: enabled
Access Mode VLAN: 3 (VLAN0003)
Trunking Native M... | [
"def",
"colon_separated_string_to_dict",
"(",
"string",
",",
"separator",
"=",
"':'",
")",
":",
"dictionary",
"=",
"dict",
"(",
")",
"for",
"line",
"in",
"string",
".",
"splitlines",
"(",
")",
":",
"line_data",
"=",
"line",
".",
"split",
"(",
"separator",
... | Converts a string in the format:
Name: Et3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
MAC Address Learning: enabled
Access Mode VLAN: 3 (VLAN0003)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: disab... | [
"Converts",
"a",
"string",
"in",
"the",
"format",
":"
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L23-L52 | train |
napalm-automation/napalm-base | napalm_base/utils/string_parsers.py | hyphen_range | def hyphen_range(string):
'''
Expands a string of numbers separated by commas and hyphens into a list of integers.
For example: 2-3,5-7,20-21,23,100-200
'''
list_numbers = list()
temporary_list = string.split(',')
for element in temporary_list:
sub_element = element.split('-')
... | python | def hyphen_range(string):
'''
Expands a string of numbers separated by commas and hyphens into a list of integers.
For example: 2-3,5-7,20-21,23,100-200
'''
list_numbers = list()
temporary_list = string.split(',')
for element in temporary_list:
sub_element = element.split('-')
... | [
"def",
"hyphen_range",
"(",
"string",
")",
":",
"list_numbers",
"=",
"list",
"(",
")",
"temporary_list",
"=",
"string",
".",
"split",
"(",
"','",
")",
"for",
"element",
"in",
"temporary_list",
":",
"sub_element",
"=",
"element",
".",
"split",
"(",
"'-'",
... | Expands a string of numbers separated by commas and hyphens into a list of integers.
For example: 2-3,5-7,20-21,23,100-200 | [
"Expands",
"a",
"string",
"of",
"numbers",
"separated",
"by",
"commas",
"and",
"hyphens",
"into",
"a",
"list",
"of",
"integers",
".",
"For",
"example",
":",
"2",
"-",
"3",
"5",
"-",
"7",
"20",
"-",
"21",
"23",
"100",
"-",
"200"
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L55-L74 | train |
napalm-automation/napalm-base | napalm_base/utils/string_parsers.py | convert_uptime_string_seconds | def convert_uptime_string_seconds(uptime):
'''Convert uptime strings to seconds. The string can be formatted various ways.'''
regex_list = [
# n years, n weeks, n days, n hours, n minutes where each of the fields except minutes
# is optional. Additionally, can be either singular or plural
... | python | def convert_uptime_string_seconds(uptime):
'''Convert uptime strings to seconds. The string can be formatted various ways.'''
regex_list = [
# n years, n weeks, n days, n hours, n minutes where each of the fields except minutes
# is optional. Additionally, can be either singular or plural
... | [
"def",
"convert_uptime_string_seconds",
"(",
"uptime",
")",
":",
"regex_list",
"=",
"[",
"# n years, n weeks, n days, n hours, n minutes where each of the fields except minutes",
"# is optional. Additionally, can be either singular or plural",
"(",
"r\"((?P<years>\\d+) year(s)?,\\s+)?((?P<we... | Convert uptime strings to seconds. The string can be formatted various ways. | [
"Convert",
"uptime",
"strings",
"to",
"seconds",
".",
"The",
"string",
"can",
"be",
"formatted",
"various",
"ways",
"."
] | f8a154e642a6da01ac1024dd52eaf7a7116e6191 | https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L77-L122 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | create_endpoint | def create_endpoint(EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, KmsKeyId=None, Tags=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None):
""... | python | def create_endpoint(EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, KmsKeyId=None, Tags=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None):
""... | [
"def",
"create_endpoint",
"(",
"EndpointIdentifier",
"=",
"None",
",",
"EndpointType",
"=",
"None",
",",
"EngineName",
"=",
"None",
",",
"Username",
"=",
"None",
",",
"Password",
"=",
"None",
",",
"ServerName",
"=",
"None",
",",
"Port",
"=",
"None",
",",
... | Creates an endpoint using the provided settings.
See also: AWS API Documentation
:example: response = client.create_endpoint(
EndpointIdentifier='string',
EndpointType='source'|'target',
EngineName='string',
Username='string',
Password='string',
ServerNa... | [
"Creates",
"an",
"endpoint",
"using",
"the",
"provided",
"settings",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_endpoint",
"(",
"EndpointIdentifier",
"=",
"string",
"EndpointType",
"=",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L83-L276 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | create_replication_instance | def create_replication_instance(ReplicationInstanceIdentifier=None, AllocatedStorage=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, AvailabilityZone=None, ReplicationSubnetGroupIdentifier=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AutoMinorVersionUpgrade=None, Tags=None, Km... | python | def create_replication_instance(ReplicationInstanceIdentifier=None, AllocatedStorage=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, AvailabilityZone=None, ReplicationSubnetGroupIdentifier=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AutoMinorVersionUpgrade=None, Tags=None, Km... | [
"def",
"create_replication_instance",
"(",
"ReplicationInstanceIdentifier",
"=",
"None",
",",
"AllocatedStorage",
"=",
"None",
",",
"ReplicationInstanceClass",
"=",
"None",
",",
"VpcSecurityGroupIds",
"=",
"None",
",",
"AvailabilityZone",
"=",
"None",
",",
"ReplicationS... | Creates the replication instance using the specified parameters.
See also: AWS API Documentation
:example: response = client.create_replication_instance(
ReplicationInstanceIdentifier='string',
AllocatedStorage=123,
ReplicationInstanceClass='string',
VpcSecurityGroupIds... | [
"Creates",
"the",
"replication",
"instance",
"using",
"the",
"specified",
"parameters",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_replication_instance",
"(",
"ReplicationInstanceIdentifier",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L369-L527 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | create_replication_task | def create_replication_task(ReplicationTaskIdentifier=None, SourceEndpointArn=None, TargetEndpointArn=None, ReplicationInstanceArn=None, MigrationType=None, TableMappings=None, ReplicationTaskSettings=None, CdcStartTime=None, Tags=None):
"""
Creates a replication task using the specified parameters.
See als... | python | def create_replication_task(ReplicationTaskIdentifier=None, SourceEndpointArn=None, TargetEndpointArn=None, ReplicationInstanceArn=None, MigrationType=None, TableMappings=None, ReplicationTaskSettings=None, CdcStartTime=None, Tags=None):
"""
Creates a replication task using the specified parameters.
See als... | [
"def",
"create_replication_task",
"(",
"ReplicationTaskIdentifier",
"=",
"None",
",",
"SourceEndpointArn",
"=",
"None",
",",
"TargetEndpointArn",
"=",
"None",
",",
"ReplicationInstanceArn",
"=",
"None",
",",
"MigrationType",
"=",
"None",
",",
"TableMappings",
"=",
"... | Creates a replication task using the specified parameters.
See also: AWS API Documentation
:example: response = client.create_replication_task(
ReplicationTaskIdentifier='string',
SourceEndpointArn='string',
TargetEndpointArn='string',
ReplicationInstanceArn='string',
... | [
"Creates",
"a",
"replication",
"task",
"using",
"the",
"specified",
"parameters",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_replication_task",
"(",
"ReplicationTaskIdentifier",
"=",
"string... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L599-L706 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | describe_events | def describe_events(SourceIdentifier=None, SourceType=None, StartTime=None, EndTime=None, Duration=None, EventCategories=None, Filters=None, MaxRecords=None, Marker=None):
"""
Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS e... | python | def describe_events(SourceIdentifier=None, SourceType=None, StartTime=None, EndTime=None, Duration=None, EventCategories=None, Filters=None, MaxRecords=None, Marker=None):
"""
Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS e... | [
"def",
"describe_events",
"(",
"SourceIdentifier",
"=",
"None",
",",
"SourceType",
"=",
"None",
",",
"StartTime",
"=",
"None",
",",
"EndTime",
"=",
"None",
",",
"Duration",
"=",
"None",
",",
"EventCategories",
"=",
"None",
",",
"Filters",
"=",
"None",
",",... | Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications .
See also: AWS API Documentation
:example: response = client.describe_events(
SourceIdentifier='string',
... | [
"Lists",
"events",
"for",
"a",
"given",
"source",
"identifier",
"and",
"source",
"type",
".",
"You",
"can",
"also",
"specify",
"a",
"start",
"and",
"end",
"time",
".",
"For",
"more",
"information",
"on",
"AWS",
"DMS",
"events",
"see",
"Working",
"with",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L1412-L1501 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | modify_endpoint | def modify_endpoint(EndpointArn=None, EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None):
"""
Mo... | python | def modify_endpoint(EndpointArn=None, EndpointIdentifier=None, EndpointType=None, EngineName=None, Username=None, Password=None, ServerName=None, Port=None, DatabaseName=None, ExtraConnectionAttributes=None, CertificateArn=None, SslMode=None, DynamoDbSettings=None, S3Settings=None, MongoDbSettings=None):
"""
Mo... | [
"def",
"modify_endpoint",
"(",
"EndpointArn",
"=",
"None",
",",
"EndpointIdentifier",
"=",
"None",
",",
"EndpointType",
"=",
"None",
",",
"EngineName",
"=",
"None",
",",
"Username",
"=",
"None",
",",
"Password",
"=",
"None",
",",
"ServerName",
"=",
"None",
... | Modifies the specified endpoint.
See also: AWS API Documentation
:example: response = client.modify_endpoint(
EndpointArn='string',
EndpointIdentifier='string',
EndpointType='source'|'target',
EngineName='string',
Username='string',
Password='string',
... | [
"Modifies",
"the",
"specified",
"endpoint",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"modify_endpoint",
"(",
"EndpointArn",
"=",
"string",
"EndpointIdentifier",
"=",
"string",
"EndpointType",
"=... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L2033-L2208 | train |
wavycloud/pyboto3 | pyboto3/databasemigrationservice.py | modify_replication_instance | def modify_replication_instance(ReplicationInstanceArn=None, AllocatedStorage=None, ApplyImmediately=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AllowMajorVersionUpgrade=None, AutoMinorVersionUpgrade=None, ReplicationInstanceIdentifie... | python | def modify_replication_instance(ReplicationInstanceArn=None, AllocatedStorage=None, ApplyImmediately=None, ReplicationInstanceClass=None, VpcSecurityGroupIds=None, PreferredMaintenanceWindow=None, MultiAZ=None, EngineVersion=None, AllowMajorVersionUpgrade=None, AutoMinorVersionUpgrade=None, ReplicationInstanceIdentifie... | [
"def",
"modify_replication_instance",
"(",
"ReplicationInstanceArn",
"=",
"None",
",",
"AllocatedStorage",
"=",
"None",
",",
"ApplyImmediately",
"=",
"None",
",",
"ReplicationInstanceClass",
"=",
"None",
",",
"VpcSecurityGroupIds",
"=",
"None",
",",
"PreferredMaintenanc... | Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
See also: AWS API Documentation
:example: response = client.modify_replication_i... | [
"Modifies",
"the",
"replication",
"instance",
"to",
"apply",
"new",
"settings",
".",
"You",
"can",
"change",
"one",
"or",
"more",
"parameters",
"by",
"specifying",
"these",
"parameters",
"and",
"the",
"new",
"values",
"in",
"the",
"request",
".",
"Some",
"se... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L2274-L2406 | train |
wavycloud/pyboto3 | pyboto3/appstream.py | create_fleet | def create_fleet(Name=None, ImageName=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None):
"""
Creates a new fleet.
See also: AWS API Documentation
:... | python | def create_fleet(Name=None, ImageName=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None):
"""
Creates a new fleet.
See also: AWS API Documentation
:... | [
"def",
"create_fleet",
"(",
"Name",
"=",
"None",
",",
"ImageName",
"=",
"None",
",",
"InstanceType",
"=",
"None",
",",
"ComputeCapacity",
"=",
"None",
",",
"VpcConfig",
"=",
"None",
",",
"MaxUserDurationInSeconds",
"=",
"None",
",",
"DisconnectTimeoutInSeconds",... | Creates a new fleet.
See also: AWS API Documentation
:example: response = client.create_fleet(
Name='string',
ImageName='string',
InstanceType='string',
ComputeCapacity={
'DesiredInstances': 123
},
VpcConfig={
'SubnetIds': [
... | [
"Creates",
"a",
"new",
"fleet",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_fleet",
"(",
"Name",
"=",
"string",
"ImageName",
"=",
"string",
"InstanceType",
"=",
"string",
"ComputeCapaci... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/appstream.py#L74-L181 | train |
wavycloud/pyboto3 | pyboto3/appstream.py | update_fleet | def update_fleet(ImageName=None, Name=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, DeleteVpcConfig=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None):
"""
Updates an existing fleet. All the attributes exce... | python | def update_fleet(ImageName=None, Name=None, InstanceType=None, ComputeCapacity=None, VpcConfig=None, MaxUserDurationInSeconds=None, DisconnectTimeoutInSeconds=None, DeleteVpcConfig=None, Description=None, DisplayName=None, EnableDefaultInternetAccess=None):
"""
Updates an existing fleet. All the attributes exce... | [
"def",
"update_fleet",
"(",
"ImageName",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"InstanceType",
"=",
"None",
",",
"ComputeCapacity",
"=",
"None",
",",
"VpcConfig",
"=",
"None",
",",
"MaxUserDurationInSeconds",
"=",
"None",
",",
"DisconnectTimeoutInSeconds",... | Updates an existing fleet. All the attributes except the fleet name can be updated in the STOPPED state. When a fleet is in the RUNNING state, only DisplayName and ComputeCapacity can be updated. A fleet cannot be updated in a status of STARTING or STOPPING .
See also: AWS API Documentation
:example: ... | [
"Updates",
"an",
"existing",
"fleet",
".",
"All",
"the",
"attributes",
"except",
"the",
"fleet",
"name",
"can",
"be",
"updated",
"in",
"the",
"STOPPED",
"state",
".",
"When",
"a",
"fleet",
"is",
"in",
"the",
"RUNNING",
"state",
"only",
"DisplayName",
"and"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/appstream.py#L798-L904 | train |
wavycloud/pyboto3 | pyboto3/codedeploy.py | create_deployment | def create_deployment(applicationName=None, deploymentGroupName=None, revision=None, deploymentConfigName=None, description=None, ignoreApplicationStopFailures=None, targetInstances=None, autoRollbackConfiguration=None, updateOutdatedInstancesOnly=None, fileExistsBehavior=None):
"""
Deploys an application revis... | python | def create_deployment(applicationName=None, deploymentGroupName=None, revision=None, deploymentConfigName=None, description=None, ignoreApplicationStopFailures=None, targetInstances=None, autoRollbackConfiguration=None, updateOutdatedInstancesOnly=None, fileExistsBehavior=None):
"""
Deploys an application revis... | [
"def",
"create_deployment",
"(",
"applicationName",
"=",
"None",
",",
"deploymentGroupName",
"=",
"None",
",",
"revision",
"=",
"None",
",",
"deploymentConfigName",
"=",
"None",
",",
"description",
"=",
"None",
",",
"ignoreApplicationStopFailures",
"=",
"None",
",... | Deploys an application revision through the specified deployment group.
See also: AWS API Documentation
:example: response = client.create_deployment(
applicationName='string',
deploymentGroupName='string',
revision={
'revisionType': 'S3'|'GitHub',
's3Lo... | [
"Deploys",
"an",
"application",
"revision",
"through",
"the",
"specified",
"deployment",
"group",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_deployment",
"(",
"applicationName",
"=",
"stri... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L640-L773 | train |
wavycloud/pyboto3 | pyboto3/codedeploy.py | create_deployment_group | def create_deployment_group(applicationName=None, deploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=None, deploymentStyle=None, blueGreenD... | python | def create_deployment_group(applicationName=None, deploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=None, deploymentStyle=None, blueGreenD... | [
"def",
"create_deployment_group",
"(",
"applicationName",
"=",
"None",
",",
"deploymentGroupName",
"=",
"None",
",",
"deploymentConfigName",
"=",
"None",
",",
"ec2TagFilters",
"=",
"None",
",",
"onPremisesInstanceTagFilters",
"=",
"None",
",",
"autoScalingGroups",
"="... | Creates a deployment group to which application revisions will be deployed.
See also: AWS API Documentation
:example: response = client.create_deployment_group(
applicationName='string',
deploymentGroupName='string',
deploymentConfigName='string',
ec2TagFilters=[
... | [
"Creates",
"a",
"deployment",
"group",
"to",
"which",
"application",
"revisions",
"will",
"be",
"deployed",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_deployment_group",
"(",
"applicationN... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L821-L1019 | train |
wavycloud/pyboto3 | pyboto3/codedeploy.py | update_deployment_group | def update_deployment_group(applicationName=None, currentDeploymentGroupName=None, newDeploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=No... | python | def update_deployment_group(applicationName=None, currentDeploymentGroupName=None, newDeploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=No... | [
"def",
"update_deployment_group",
"(",
"applicationName",
"=",
"None",
",",
"currentDeploymentGroupName",
"=",
"None",
",",
"newDeploymentGroupName",
"=",
"None",
",",
"deploymentConfigName",
"=",
"None",
",",
"ec2TagFilters",
"=",
"None",
",",
"onPremisesInstanceTagFil... | Changes information about a deployment group.
See also: AWS API Documentation
:example: response = client.update_deployment_group(
applicationName='string',
currentDeploymentGroupName='string',
newDeploymentGroupName='string',
deploymentConfigName='string',
ec2T... | [
"Changes",
"information",
"about",
"a",
"deployment",
"group",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_deployment_group",
"(",
"applicationName",
"=",
"string",
"currentDeploymentGroupName"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L2252-L2454 | train |
wavycloud/pyboto3 | pyboto3/storagegateway.py | create_nfs_file_share | def create_nfs_file_share(ClientToken=None, NFSFileShareDefaults=None, GatewayARN=None, KMSEncrypted=None, KMSKey=None, Role=None, LocationARN=None, DefaultStorageClass=None, ClientList=None, Squash=None, ReadOnly=None):
"""
Creates a file share on an existing file gateway. In Storage Gateway, a file share is a... | python | def create_nfs_file_share(ClientToken=None, NFSFileShareDefaults=None, GatewayARN=None, KMSEncrypted=None, KMSKey=None, Role=None, LocationARN=None, DefaultStorageClass=None, ClientList=None, Squash=None, ReadOnly=None):
"""
Creates a file share on an existing file gateway. In Storage Gateway, a file share is a... | [
"def",
"create_nfs_file_share",
"(",
"ClientToken",
"=",
"None",
",",
"NFSFileShareDefaults",
"=",
"None",
",",
"GatewayARN",
"=",
"None",
",",
"KMSEncrypted",
"=",
"None",
",",
"KMSKey",
"=",
"None",
",",
"Role",
"=",
"None",
",",
"LocationARN",
"=",
"None"... | Creates a file share on an existing file gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using a Network File System (NFS) interface. This operation is only supported in the file gateway architecture.
See also: AWS API Doc... | [
"Creates",
"a",
"file",
"share",
"on",
"an",
"existing",
"file",
"gateway",
".",
"In",
"Storage",
"Gateway",
"a",
"file",
"share",
"is",
"a",
"file",
"system",
"mount",
"point",
"backed",
"by",
"Amazon",
"S3",
"cloud",
"storage",
".",
"Storage",
"Gateway",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/storagegateway.py#L413-L500 | train |
wavycloud/pyboto3 | pyboto3/elasticloadbalancingv2.py | create_target_group | def create_target_group(Name=None, Protocol=None, Port=None, VpcId=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None):
"""
Creates a target group.
... | python | def create_target_group(Name=None, Protocol=None, Port=None, VpcId=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None):
"""
Creates a target group.
... | [
"def",
"create_target_group",
"(",
"Name",
"=",
"None",
",",
"Protocol",
"=",
"None",
",",
"Port",
"=",
"None",
",",
"VpcId",
"=",
"None",
",",
"HealthCheckProtocol",
"=",
"None",
",",
"HealthCheckPort",
"=",
"None",
",",
"HealthCheckPath",
"=",
"None",
",... | Creates a target group.
To register targets with the target group, use RegisterTargets . To update the health check settings for the target group, use ModifyTargetGroup . To monitor the health of targets in the target group, use DescribeTargetHealth .
To route traffic to the targets in a target group, specif... | [
"Creates",
"a",
"target",
"group",
".",
"To",
"register",
"targets",
"with",
"the",
"target",
"group",
"use",
"RegisterTargets",
".",
"To",
"update",
"the",
"health",
"check",
"settings",
"for",
"the",
"target",
"group",
"use",
"ModifyTargetGroup",
".",
"To",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticloadbalancingv2.py#L414-L523 | train |
wavycloud/pyboto3 | pyboto3/elasticloadbalancingv2.py | modify_target_group | def modify_target_group(TargetGroupArn=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None):
"""
Modifies the health checks used when evaluating the hea... | python | def modify_target_group(TargetGroupArn=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None):
"""
Modifies the health checks used when evaluating the hea... | [
"def",
"modify_target_group",
"(",
"TargetGroupArn",
"=",
"None",
",",
"HealthCheckProtocol",
"=",
"None",
",",
"HealthCheckPort",
"=",
"None",
",",
"HealthCheckPath",
"=",
"None",
",",
"HealthCheckIntervalSeconds",
"=",
"None",
",",
"HealthCheckTimeoutSeconds",
"=",
... | Modifies the health checks used when evaluating the health state of the targets in the specified target group.
To monitor the health of the targets, use DescribeTargetHealth .
See also: AWS API Documentation
Examples
This example changes the configuration of the health checks used to evaluate the ... | [
"Modifies",
"the",
"health",
"checks",
"used",
"when",
"evaluating",
"the",
"health",
"state",
"of",
"the",
"targets",
"in",
"the",
"specified",
"target",
"group",
".",
"To",
"monitor",
"the",
"health",
"of",
"the",
"targets",
"use",
"DescribeTargetHealth",
".... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticloadbalancingv2.py#L1532-L1619 | train |
wavycloud/pyboto3 | pyboto3/gamelift.py | create_fleet | def create_fleet(Name=None, Description=None, BuildId=None, ServerLaunchPath=None, ServerLaunchParameters=None, LogPaths=None, EC2InstanceType=None, EC2InboundPermissions=None, NewGameSessionProtectionPolicy=None, RuntimeConfiguration=None, ResourceCreationLimitPolicy=None, MetricGroups=None):
"""
Creates a new... | python | def create_fleet(Name=None, Description=None, BuildId=None, ServerLaunchPath=None, ServerLaunchParameters=None, LogPaths=None, EC2InstanceType=None, EC2InboundPermissions=None, NewGameSessionProtectionPolicy=None, RuntimeConfiguration=None, ResourceCreationLimitPolicy=None, MetricGroups=None):
"""
Creates a new... | [
"def",
"create_fleet",
"(",
"Name",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"BuildId",
"=",
"None",
",",
"ServerLaunchPath",
"=",
"None",
",",
"ServerLaunchParameters",
"=",
"None",
",",
"LogPaths",
"=",
"None",
",",
"EC2InstanceType",
"=",
"None"... | Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications (see Amazon EC2 Instance Types for more information... | [
"Creates",
"a",
"new",
"fleet",
"to",
"run",
"your",
"game",
"servers",
".",
"A",
"fleet",
"is",
"a",
"set",
"of",
"Amazon",
"Elastic",
"Compute",
"Cloud",
"(",
"Amazon",
"EC2",
")",
"instances",
"each",
"of",
"which",
"can",
"run",
"multiple",
"server",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/gamelift.py#L172-L326 | train |
wavycloud/pyboto3 | pyboto3/ses.py | send_email | def send_email(Source=None, Destination=None, Message=None, ReplyToAddresses=None, ReturnPath=None, SourceArn=None, ReturnPathArn=None, Tags=None, ConfigurationSetName=None):
"""
Composes an email message based on input data, and then immediately queues the message for sending.
There are several important p... | python | def send_email(Source=None, Destination=None, Message=None, ReplyToAddresses=None, ReturnPath=None, SourceArn=None, ReturnPathArn=None, Tags=None, ConfigurationSetName=None):
"""
Composes an email message based on input data, and then immediately queues the message for sending.
There are several important p... | [
"def",
"send_email",
"(",
"Source",
"=",
"None",
",",
"Destination",
"=",
"None",
",",
"Message",
"=",
"None",
",",
"ReplyToAddresses",
"=",
"None",
",",
"ReturnPath",
"=",
"None",
",",
"SourceArn",
"=",
"None",
",",
"ReturnPathArn",
"=",
"None",
",",
"T... | Composes an email message based on input data, and then immediately queues the message for sending.
There are several important points to know about SendEmail :
See also: AWS API Documentation
Examples
The following example sends a formatted email:
Expected Output:
:example: response =... | [
"Composes",
"an",
"email",
"message",
"based",
"on",
"input",
"data",
"and",
"then",
"immediately",
"queues",
"the",
"message",
"for",
"sending",
".",
"There",
"are",
"several",
"important",
"points",
"to",
"know",
"about",
"SendEmail",
":",
"See",
"also",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ses.py#L1643-L1871 | train |
wavycloud/pyboto3 | pyboto3/cloudwatch.py | get_metric_statistics | def get_metric_statistics(Namespace=None, MetricName=None, Dimensions=None, StartTime=None, EndTime=None, Period=None, Statistics=None, ExtendedStatistics=None, Unit=None):
"""
Gets statistics for the specified metric.
Amazon CloudWatch retains metric data as follows:
Note that CloudWatch started retain... | python | def get_metric_statistics(Namespace=None, MetricName=None, Dimensions=None, StartTime=None, EndTime=None, Period=None, Statistics=None, ExtendedStatistics=None, Unit=None):
"""
Gets statistics for the specified metric.
Amazon CloudWatch retains metric data as follows:
Note that CloudWatch started retain... | [
"def",
"get_metric_statistics",
"(",
"Namespace",
"=",
"None",
",",
"MetricName",
"=",
"None",
",",
"Dimensions",
"=",
"None",
",",
"StartTime",
"=",
"None",
",",
"EndTime",
"=",
"None",
",",
"Period",
"=",
"None",
",",
"Statistics",
"=",
"None",
",",
"E... | Gets statistics for the specified metric.
Amazon CloudWatch retains metric data as follows:
Note that CloudWatch started retaining 5-minute and 1-hour metric data as of 9 July 2016.
The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, Amazon Clo... | [
"Gets",
"statistics",
"for",
"the",
"specified",
"metric",
".",
"Amazon",
"CloudWatch",
"retains",
"metric",
"data",
"as",
"follows",
":",
"Note",
"that",
"CloudWatch",
"started",
"retaining",
"5",
"-",
"minute",
"and",
"1",
"-",
"hour",
"metric",
"data",
"a... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudwatch.py#L374-L488 | train |
wavycloud/pyboto3 | pyboto3/cloudwatch.py | put_metric_alarm | def put_metric_alarm(AlarmName=None, AlarmDescription=None, ActionsEnabled=None, OKActions=None, AlarmActions=None, InsufficientDataActions=None, MetricName=None, Namespace=None, Statistic=None, ExtendedStatistic=None, Dimensions=None, Period=None, Unit=None, EvaluationPeriods=None, Threshold=None, ComparisonOperator=N... | python | def put_metric_alarm(AlarmName=None, AlarmDescription=None, ActionsEnabled=None, OKActions=None, AlarmActions=None, InsufficientDataActions=None, MetricName=None, Namespace=None, Statistic=None, ExtendedStatistic=None, Dimensions=None, Period=None, Unit=None, EvaluationPeriods=None, Threshold=None, ComparisonOperator=N... | [
"def",
"put_metric_alarm",
"(",
"AlarmName",
"=",
"None",
",",
"AlarmDescription",
"=",
"None",
",",
"ActionsEnabled",
"=",
"None",
",",
"OKActions",
"=",
"None",
",",
"AlarmActions",
"=",
"None",
",",
"InsufficientDataActions",
"=",
"None",
",",
"MetricName",
... | Creates or updates an alarm and associates it with the specified metric. Optionally, this operation can associate one or more Amazon SNS resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA . The alarm is evaluated and its state is set appropriately... | [
"Creates",
"or",
"updates",
"an",
"alarm",
"and",
"associates",
"it",
"with",
"the",
"specified",
"metric",
".",
"Optionally",
"this",
"operation",
"can",
"associate",
"one",
"or",
"more",
"Amazon",
"SNS",
"resources",
"with",
"the",
"alarm",
".",
"When",
"t... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudwatch.py#L571-L778 | train |
wavycloud/pyboto3 | pyboto3/autoscaling.py | create_auto_scaling_group | def create_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, InstanceId=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, LoadBalancerNames=None, TargetGroupARNs=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VP... | python | def create_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, InstanceId=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, LoadBalancerNames=None, TargetGroupARNs=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VP... | [
"def",
"create_auto_scaling_group",
"(",
"AutoScalingGroupName",
"=",
"None",
",",
"LaunchConfigurationName",
"=",
"None",
",",
"InstanceId",
"=",
"None",
",",
"MinSize",
"=",
"None",
",",
"MaxSize",
"=",
"None",
",",
"DesiredCapacity",
"=",
"None",
",",
"Defaul... | Creates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits .
For more information, see Auto Scaling Groups in t... | [
"Creates",
"an",
"Auto",
"Scaling",
"group",
"with",
"the",
"specified",
"name",
"and",
"attributes",
".",
"If",
"you",
"exceed",
"your",
"maximum",
"limit",
"of",
"Auto",
"Scaling",
"groups",
"which",
"by",
"default",
"is",
"20",
"per",
"region",
"the",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L227-L380 | train |
wavycloud/pyboto3 | pyboto3/autoscaling.py | create_launch_configuration | def create_launch_configuration(LaunchConfigurationName=None, ImageId=None, KeyName=None, SecurityGroups=None, ClassicLinkVPCId=None, ClassicLinkVPCSecurityGroups=None, UserData=None, InstanceId=None, InstanceType=None, KernelId=None, RamdiskId=None, BlockDeviceMappings=None, InstanceMonitoring=None, SpotPrice=None, Ia... | python | def create_launch_configuration(LaunchConfigurationName=None, ImageId=None, KeyName=None, SecurityGroups=None, ClassicLinkVPCId=None, ClassicLinkVPCSecurityGroups=None, UserData=None, InstanceId=None, InstanceType=None, KernelId=None, RamdiskId=None, BlockDeviceMappings=None, InstanceMonitoring=None, SpotPrice=None, Ia... | [
"def",
"create_launch_configuration",
"(",
"LaunchConfigurationName",
"=",
"None",
",",
"ImageId",
"=",
"None",
",",
"KeyName",
"=",
"None",
",",
"SecurityGroups",
"=",
"None",
",",
"ClassicLinkVPCId",
"=",
"None",
",",
"ClassicLinkVPCSecurityGroups",
"=",
"None",
... | Creates a launch configuration.
If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits .
For more information, see Launch Configurations in the Auto Scaling User Guide .
... | [
"Creates",
"a",
"launch",
"configuration",
".",
"If",
"you",
"exceed",
"your",
"maximum",
"limit",
"of",
"launch",
"configurations",
"which",
"by",
"default",
"is",
"100",
"per",
"region",
"the",
"call",
"fails",
".",
"For",
"information",
"about",
"viewing",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L382-L554 | train |
wavycloud/pyboto3 | pyboto3/autoscaling.py | put_scaling_policy | def put_scaling_policy(AutoScalingGroupName=None, PolicyName=None, PolicyType=None, AdjustmentType=None, MinAdjustmentStep=None, MinAdjustmentMagnitude=None, ScalingAdjustment=None, Cooldown=None, MetricAggregationType=None, StepAdjustments=None, EstimatedInstanceWarmup=None):
"""
Creates or updates a policy fo... | python | def put_scaling_policy(AutoScalingGroupName=None, PolicyName=None, PolicyType=None, AdjustmentType=None, MinAdjustmentStep=None, MinAdjustmentMagnitude=None, ScalingAdjustment=None, Cooldown=None, MetricAggregationType=None, StepAdjustments=None, EstimatedInstanceWarmup=None):
"""
Creates or updates a policy fo... | [
"def",
"put_scaling_policy",
"(",
"AutoScalingGroupName",
"=",
"None",
",",
"PolicyName",
"=",
"None",
",",
"PolicyType",
"=",
"None",
",",
"AdjustmentType",
"=",
"None",
",",
"MinAdjustmentStep",
"=",
"None",
",",
"MinAdjustmentMagnitude",
"=",
"None",
",",
"Sc... | Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
If you exceed your maximum limit of step adjustmen... | [
"Creates",
"or",
"updates",
"a",
"policy",
"for",
"an",
"Auto",
"Scaling",
"group",
".",
"To",
"update",
"an",
"existing",
"policy",
"use",
"the",
"existing",
"policy",
"name",
"and",
"set",
"the",
"parameters",
"you",
"want",
"to",
"change",
".",
"Any",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2334-L2437 | train |
wavycloud/pyboto3 | pyboto3/autoscaling.py | put_scheduled_update_group_action | def put_scheduled_update_group_action(AutoScalingGroupName=None, ScheduledActionName=None, Time=None, StartTime=None, EndTime=None, Recurrence=None, MinSize=None, MaxSize=None, DesiredCapacity=None):
"""
Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling a... | python | def put_scheduled_update_group_action(AutoScalingGroupName=None, ScheduledActionName=None, Time=None, StartTime=None, EndTime=None, Recurrence=None, MinSize=None, MaxSize=None, DesiredCapacity=None):
"""
Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling a... | [
"def",
"put_scheduled_update_group_action",
"(",
"AutoScalingGroupName",
"=",
"None",
",",
"ScheduledActionName",
"=",
"None",
",",
"Time",
"=",
"None",
",",
"StartTime",
"=",
"None",
",",
"EndTime",
"=",
"None",
",",
"Recurrence",
"=",
"None",
",",
"MinSize",
... | Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged.
For more information, see Scheduled Scaling in the Auto Scaling User Guide .
See also: AWS API Documentation
... | [
"Creates",
"or",
"updates",
"a",
"scheduled",
"scaling",
"action",
"for",
"an",
"Auto",
"Scaling",
"group",
".",
"When",
"updating",
"a",
"scheduled",
"scaling",
"action",
"if",
"you",
"leave",
"a",
"parameter",
"unspecified",
"the",
"corresponding",
"value",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2439-L2510 | train |
wavycloud/pyboto3 | pyboto3/autoscaling.py | update_auto_scaling_group | def update_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VPCZoneIdentifier=None, TerminationPolicies=None, NewInstancesPro... | python | def update_auto_scaling_group(AutoScalingGroupName=None, LaunchConfigurationName=None, MinSize=None, MaxSize=None, DesiredCapacity=None, DefaultCooldown=None, AvailabilityZones=None, HealthCheckType=None, HealthCheckGracePeriod=None, PlacementGroup=None, VPCZoneIdentifier=None, TerminationPolicies=None, NewInstancesPro... | [
"def",
"update_auto_scaling_group",
"(",
"AutoScalingGroupName",
"=",
"None",
",",
"LaunchConfigurationName",
"=",
"None",
",",
"MinSize",
"=",
"None",
",",
"MaxSize",
"=",
"None",
",",
"DesiredCapacity",
"=",
"None",
",",
"DefaultCooldown",
"=",
"None",
",",
"A... | Updates the configuration for the specified Auto Scaling group.
The new settings take effect on any scaling activities after this call returns. Scaling activities that are currently in progress aren't affected.
To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to false , yo... | [
"Updates",
"the",
"configuration",
"for",
"the",
"specified",
"Auto",
"Scaling",
"group",
".",
"The",
"new",
"settings",
"take",
"effect",
"on",
"any",
"scaling",
"activities",
"after",
"this",
"call",
"returns",
".",
"Scaling",
"activities",
"that",
"are",
"c... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2842-L2974 | train |
wavycloud/pyboto3 | pyboto3/cloudsearchdomain.py | search | def search(cursor=None, expr=None, facet=None, filterQuery=None, highlight=None, partial=None, query=None, queryOptions=None, queryParser=None, returnFields=None, size=None, sort=None, start=None, stats=None):
"""
Retrieves a list of documents that match the specified search criteria. How you specify the search... | python | def search(cursor=None, expr=None, facet=None, filterQuery=None, highlight=None, partial=None, query=None, queryOptions=None, queryParser=None, returnFields=None, size=None, sort=None, start=None, stats=None):
"""
Retrieves a list of documents that match the specified search criteria. How you specify the search... | [
"def",
"search",
"(",
"cursor",
"=",
"None",
",",
"expr",
"=",
"None",
",",
"facet",
"=",
"None",
",",
"filterQuery",
"=",
"None",
",",
"highlight",
"=",
"None",
",",
"partial",
"=",
"None",
",",
"query",
"=",
"None",
",",
"queryOptions",
"=",
"None"... | Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:
For more information, see Searching Your Data in the Amazon CloudSearch Developer Guide .
The endpoint for submitting... | [
"Retrieves",
"a",
"list",
"of",
"documents",
"that",
"match",
"the",
"specified",
"search",
"criteria",
".",
"How",
"you",
"specify",
"the",
"search",
"criteria",
"depends",
"on",
"which",
"query",
"parser",
"you",
"use",
".",
"Amazon",
"CloudSearch",
"support... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudsearchdomain.py#L86-L343 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | clone_stack | def clone_stack(SourceStackId=None, Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=Non... | python | def clone_stack(SourceStackId=None, Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=Non... | [
"def",
"clone_stack",
"(",
"SourceStackId",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Region",
"=",
"None",
",",
"VpcId",
"=",
"None",
",",
"Attributes",
"=",
"None",
",",
"ServiceRoleArn",
"=",
"None",
",",
"DefaultInstanceProfileArn",
"=",
"None",
","... | Creates a clone of a specified stack. For more information, see Clone a Stack . By default, all parameters are set to the values used by the parent stack.
See also: AWS API Documentation
:example: response = client.clone_stack(
SourceStackId='string',
Name='string',
Region='str... | [
"Creates",
"a",
"clone",
"of",
"a",
"specified",
"stack",
".",
"For",
"more",
"information",
"see",
"Clone",
"a",
"Stack",
".",
"By",
"default",
"all",
"parameters",
"are",
"set",
"to",
"the",
"values",
"used",
"by",
"the",
"parent",
"stack",
".",
"See",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L152-L350 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | create_app | def create_app(StackId=None, Shortname=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None):
"""
Creates an app for a specified stack. For more information, see Creating Apps .
See also: AWS AP... | python | def create_app(StackId=None, Shortname=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None):
"""
Creates an app for a specified stack. For more information, see Creating Apps .
See also: AWS AP... | [
"def",
"create_app",
"(",
"StackId",
"=",
"None",
",",
"Shortname",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"DataSources",
"=",
"None",
",",
"Type",
"=",
"None",
",",
"AppSource",
"=",
"None",
",",
"Domains",
"=",
... | Creates an app for a specified stack. For more information, see Creating Apps .
See also: AWS API Documentation
:example: response = client.create_app(
StackId='string',
Shortname='string',
Name='string',
Description='string',
DataSources=[
{
... | [
"Creates",
"an",
"app",
"for",
"a",
"specified",
"stack",
".",
"For",
"more",
"information",
"see",
"Creating",
"Apps",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_app",
"(",
"StackId... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L352-L488 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | create_instance | def create_instance(StackId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, AvailabilityZone=None, VirtualizationType=None, SubnetId=None, Architecture=None, RootDeviceType=None, BlockDeviceMappings=None, InstallUpdatesOnBoot=None, EbsOptimized=None, Ag... | python | def create_instance(StackId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, AvailabilityZone=None, VirtualizationType=None, SubnetId=None, Architecture=None, RootDeviceType=None, BlockDeviceMappings=None, InstallUpdatesOnBoot=None, EbsOptimized=None, Ag... | [
"def",
"create_instance",
"(",
"StackId",
"=",
"None",
",",
"LayerIds",
"=",
"None",
",",
"InstanceType",
"=",
"None",
",",
"AutoScalingType",
"=",
"None",
",",
"Hostname",
"=",
"None",
",",
"Os",
"=",
"None",
",",
"AmiId",
"=",
"None",
",",
"SshKeyName"... | Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer .
See also: AWS API Documentation
:example: response = client.create_instance(
StackId='string',
LayerIds=[
'string',
],
InstanceType='string',
AutoScal... | [
"Creates",
"an",
"instance",
"in",
"a",
"specified",
"stack",
".",
"For",
"more",
"information",
"see",
"Adding",
"an",
"Instance",
"to",
"a",
"Layer",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L585-L727 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | create_layer | def create_layer(StackId=None, Type=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, Cust... | python | def create_layer(StackId=None, Type=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, Cust... | [
"def",
"create_layer",
"(",
"StackId",
"=",
"None",
",",
"Type",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Shortname",
"=",
"None",
",",
"Attributes",
"=",
"None",
",",
"CloudWatchLogsConfiguration",
"=",
"None",
",",
"CustomInstanceProfileArn",
"=",
"Non... | Creates a layer. For more information, see How to Create a Layer .
See also: AWS API Documentation
:example: response = client.create_layer(
StackId='string',
Type='aws-flow-ruby'|'ecs-cluster'|'java-app'|'lb'|'web'|'php-app'|'rails-app'|'nodejs-app'|'memcached'|'db-master'|'monitoring... | [
"Creates",
"a",
"layer",
".",
"For",
"more",
"information",
"see",
"How",
"to",
"Create",
"a",
"Layer",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_layer",
"(",
"StackId",
"=",
"str... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L729-L937 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | create_stack | def create_stack(Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, UseOpsworksSecur... | python | def create_stack(Name=None, Region=None, VpcId=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, UseOpsworksSecur... | [
"def",
"create_stack",
"(",
"Name",
"=",
"None",
",",
"Region",
"=",
"None",
",",
"VpcId",
"=",
"None",
",",
"Attributes",
"=",
"None",
",",
"ServiceRoleArn",
"=",
"None",
",",
"DefaultInstanceProfileArn",
"=",
"None",
",",
"DefaultOs",
"=",
"None",
",",
... | Creates a new stack. For more information, see Create a New Stack .
See also: AWS API Documentation
:example: response = client.create_stack(
Name='string',
Region='string',
VpcId='string',
Attributes={
'string': 'string'
},
ServiceRoleArn='s... | [
"Creates",
"a",
"new",
"stack",
".",
"For",
"more",
"information",
"see",
"Create",
"a",
"New",
"Stack",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_stack",
"(",
"Name",
"=",
"strin... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L939-L1121 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | update_app | def update_app(AppId=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None):
"""
Updates a specified app.
See also: AWS API Documentation
:example: response = client.update_app(
... | python | def update_app(AppId=None, Name=None, Description=None, DataSources=None, Type=None, AppSource=None, Domains=None, EnableSsl=None, SslConfiguration=None, Attributes=None, Environment=None):
"""
Updates a specified app.
See also: AWS API Documentation
:example: response = client.update_app(
... | [
"def",
"update_app",
"(",
"AppId",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Description",
"=",
"None",
",",
"DataSources",
"=",
"None",
",",
"Type",
"=",
"None",
",",
"AppSource",
"=",
"None",
",",
"Domains",
"=",
"None",
",",
"EnableSsl",
"=",
"... | Updates a specified app.
See also: AWS API Documentation
:example: response = client.update_app(
AppId='string',
Name='string',
Description='string',
DataSources=[
{
'Type': 'string',
'Arn': 'string',
'Database... | [
"Updates",
"a",
"specified",
"app",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_app",
"(",
"AppId",
"=",
"string",
"Name",
"=",
"string",
"Description",
"=",
"string",
"DataSources",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3199-L3321 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | update_instance | def update_instance(InstanceId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, Architecture=None, InstallUpdatesOnBoot=None, EbsOptimized=None, AgentVersion=None):
"""
Updates a specified instance.
See also: AWS API Documentation
... | python | def update_instance(InstanceId=None, LayerIds=None, InstanceType=None, AutoScalingType=None, Hostname=None, Os=None, AmiId=None, SshKeyName=None, Architecture=None, InstallUpdatesOnBoot=None, EbsOptimized=None, AgentVersion=None):
"""
Updates a specified instance.
See also: AWS API Documentation
... | [
"def",
"update_instance",
"(",
"InstanceId",
"=",
"None",
",",
"LayerIds",
"=",
"None",
",",
"InstanceType",
"=",
"None",
",",
"AutoScalingType",
"=",
"None",
",",
"Hostname",
"=",
"None",
",",
"Os",
"=",
"None",
",",
"AmiId",
"=",
"None",
",",
"SshKeyNa... | Updates a specified instance.
See also: AWS API Documentation
:example: response = client.update_instance(
InstanceId='string',
LayerIds=[
'string',
],
InstanceType='string',
AutoScalingType='load'|'timer',
Hostname='string',
Os='stri... | [
"Updates",
"a",
"specified",
"instance",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_instance",
"(",
"InstanceId",
"=",
"string",
"LayerIds",
"=",
"[",
"string",
"]",
"InstanceType",
"=... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3346-L3429 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | update_layer | def update_layer(LayerId=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, CustomRecipes=N... | python | def update_layer(LayerId=None, Name=None, Shortname=None, Attributes=None, CloudWatchLogsConfiguration=None, CustomInstanceProfileArn=None, CustomJson=None, CustomSecurityGroupIds=None, Packages=None, VolumeConfigurations=None, EnableAutoHealing=None, AutoAssignElasticIps=None, AutoAssignPublicIps=None, CustomRecipes=N... | [
"def",
"update_layer",
"(",
"LayerId",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Shortname",
"=",
"None",
",",
"Attributes",
"=",
"None",
",",
"CloudWatchLogsConfiguration",
"=",
"None",
",",
"CustomInstanceProfileArn",
"=",
"None",
",",
"CustomJson",
"=",
... | Updates a specified layer.
See also: AWS API Documentation
:example: response = client.update_layer(
LayerId='string',
Name='string',
Shortname='string',
Attributes={
'string': 'string'
},
CloudWatchLogsConfiguration={
'Enabled': ... | [
"Updates",
"a",
"specified",
"layer",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_layer",
"(",
"LayerId",
"=",
"string",
"Name",
"=",
"string",
"Shortname",
"=",
"string",
"Attributes",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3431-L3623 | train |
wavycloud/pyboto3 | pyboto3/opsworks.py | update_stack | def update_stack(StackId=None, Name=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, CustomCookbooksSource=None,... | python | def update_stack(StackId=None, Name=None, Attributes=None, ServiceRoleArn=None, DefaultInstanceProfileArn=None, DefaultOs=None, HostnameTheme=None, DefaultAvailabilityZone=None, DefaultSubnetId=None, CustomJson=None, ConfigurationManager=None, ChefConfiguration=None, UseCustomCookbooks=None, CustomCookbooksSource=None,... | [
"def",
"update_stack",
"(",
"StackId",
"=",
"None",
",",
"Name",
"=",
"None",
",",
"Attributes",
"=",
"None",
",",
"ServiceRoleArn",
"=",
"None",
",",
"DefaultInstanceProfileArn",
"=",
"None",
",",
"DefaultOs",
"=",
"None",
",",
"HostnameTheme",
"=",
"None",... | Updates a specified stack.
See also: AWS API Documentation
:example: response = client.update_stack(
StackId='string',
Name='string',
Attributes={
'string': 'string'
},
ServiceRoleArn='string',
DefaultInstanceProfileArn='string',
Defa... | [
"Updates",
"a",
"specified",
"stack",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"update_stack",
"(",
"StackId",
"=",
"string",
"Name",
"=",
"string",
"Attributes",
"=",
"{",
"string",
":",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3669-L3827 | train |
wavycloud/pyboto3 | pyboto3/codebuild.py | create_project | def create_project(name=None, description=None, source=None, artifacts=None, environment=None, serviceRole=None, timeoutInMinutes=None, encryptionKey=None, tags=None):
"""
Creates a build project.
See also: AWS API Documentation
:example: response = client.create_project(
name='string'... | python | def create_project(name=None, description=None, source=None, artifacts=None, environment=None, serviceRole=None, timeoutInMinutes=None, encryptionKey=None, tags=None):
"""
Creates a build project.
See also: AWS API Documentation
:example: response = client.create_project(
name='string'... | [
"def",
"create_project",
"(",
"name",
"=",
"None",
",",
"description",
"=",
"None",
",",
"source",
"=",
"None",
",",
"artifacts",
"=",
"None",
",",
"environment",
"=",
"None",
",",
"serviceRole",
"=",
"None",
",",
"timeoutInMinutes",
"=",
"None",
",",
"e... | Creates a build project.
See also: AWS API Documentation
:example: response = client.create_project(
name='string',
description='string',
source={
'type': 'CODECOMMIT'|'CODEPIPELINE'|'GITHUB'|'S3',
'location': 'string',
'buildspec': 'string',... | [
"Creates",
"a",
"build",
"project",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"create_project",
"(",
"name",
"=",
"string",
"description",
"=",
"string",
"source",
"=",
"{",
"type",
":",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codebuild.py#L222-L431 | train |
wavycloud/pyboto3 | pyboto3/lexmodelbuildingservice.py | put_bot | def put_bot(name=None, description=None, intents=None, clarificationPrompt=None, abortStatement=None, idleSessionTTLInSeconds=None, voiceId=None, checksum=None, processBehavior=None, locale=None, childDirected=None):
"""
Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or up... | python | def put_bot(name=None, description=None, intents=None, clarificationPrompt=None, abortStatement=None, idleSessionTTLInSeconds=None, voiceId=None, checksum=None, processBehavior=None, locale=None, childDirected=None):
"""
Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or up... | [
"def",
"put_bot",
"(",
"name",
"=",
"None",
",",
"description",
"=",
"None",
",",
"intents",
"=",
"None",
",",
"clarificationPrompt",
"=",
"None",
",",
"abortStatement",
"=",
"None",
",",
"idleSessionTTLInSeconds",
"=",
"None",
",",
"voiceId",
"=",
"None",
... | Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or update a bot you only required to specify a name. You can use this to add intents later, or to remove intents from an existing bot. When you create a bot with a name only, the bot is created or updated but Amazon Lex returns the ``... | [
"Creates",
"an",
"Amazon",
"Lex",
"conversational",
"bot",
"or",
"replaces",
"an",
"existing",
"bot",
".",
"When",
"you",
"create",
"or",
"update",
"a",
"bot",
"you",
"only",
"required",
"to",
"specify",
"a",
"name",
".",
"You",
"can",
"use",
"this",
"to... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lexmodelbuildingservice.py#L1461-L1622 | train |
wavycloud/pyboto3 | pyboto3/lexmodelbuildingservice.py | put_intent | def put_intent(name=None, description=None, slots=None, sampleUtterances=None, confirmationPrompt=None, rejectionStatement=None, followUpPrompt=None, conclusionStatement=None, dialogCodeHook=None, fulfillmentActivity=None, parentIntentSignature=None, checksum=None):
"""
Creates an intent or replaces an existing... | python | def put_intent(name=None, description=None, slots=None, sampleUtterances=None, confirmationPrompt=None, rejectionStatement=None, followUpPrompt=None, conclusionStatement=None, dialogCodeHook=None, fulfillmentActivity=None, parentIntentSignature=None, checksum=None):
"""
Creates an intent or replaces an existing... | [
"def",
"put_intent",
"(",
"name",
"=",
"None",
",",
"description",
"=",
"None",
",",
"slots",
"=",
"None",
",",
"sampleUtterances",
"=",
"None",
",",
"confirmationPrompt",
"=",
"None",
",",
"rejectionStatement",
"=",
"None",
",",
"followUpPrompt",
"=",
"None... | Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot, for example, you would create an OrderPizza intent.
To create an intent or replace an existing intent, you must provide the following:
You can spe... | [
"Creates",
"an",
"intent",
"or",
"replaces",
"an",
"existing",
"intent",
".",
"To",
"define",
"the",
"interaction",
"between",
"the",
"user",
"and",
"your",
"bot",
"you",
"use",
"one",
"or",
"more",
"intents",
".",
"For",
"a",
"pizza",
"ordering",
"bot",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lexmodelbuildingservice.py#L1679-L2020 | train |
wavycloud/pyboto3 | pyboto3/elasticache.py | create_cache_cluster | def create_cache_cluster(CacheClusterId=None, ReplicationGroupId=None, AZMode=None, PreferredAvailabilityZone=None, PreferredAvailabilityZones=None, NumCacheNodes=None, CacheNodeType=None, Engine=None, EngineVersion=None, CacheParameterGroupName=None, CacheSubnetGroupName=None, CacheSecurityGroupNames=None, SecurityGro... | python | def create_cache_cluster(CacheClusterId=None, ReplicationGroupId=None, AZMode=None, PreferredAvailabilityZone=None, PreferredAvailabilityZones=None, NumCacheNodes=None, CacheNodeType=None, Engine=None, EngineVersion=None, CacheParameterGroupName=None, CacheSubnetGroupName=None, CacheSecurityGroupNames=None, SecurityGro... | [
"def",
"create_cache_cluster",
"(",
"CacheClusterId",
"=",
"None",
",",
"ReplicationGroupId",
"=",
"None",
",",
"AZMode",
"=",
"None",
",",
"PreferredAvailabilityZone",
"=",
"None",
",",
"PreferredAvailabilityZones",
"=",
"None",
",",
"NumCacheNodes",
"=",
"None",
... | Creates a cache cluster. All nodes in the cache cluster run the same protocol-compliant cache engine software, either Memcached or Redis.
See also: AWS API Documentation
:example: response = client.create_cache_cluster(
CacheClusterId='string',
ReplicationGroupId='string',
AZMo... | [
"Creates",
"a",
"cache",
"cluster",
".",
"All",
"nodes",
"in",
"the",
"cache",
"cluster",
"run",
"the",
"same",
"protocol",
"-",
"compliant",
"cache",
"engine",
"software",
"either",
"Memcached",
"or",
"Redis",
".",
"See",
"also",
":",
"AWS",
"API",
"Docum... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L235-L536 | train |
wavycloud/pyboto3 | pyboto3/elasticache.py | create_replication_group | def create_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, AutomaticFailoverEnabled=None, NumCacheClusters=None, PreferredCacheClusterAZs=None, NumNodeGroups=None, ReplicasPerNodeGroup=None, NodeGroupConfiguration=None, CacheNodeType=None, Engine=None, EngineVersion=N... | python | def create_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, AutomaticFailoverEnabled=None, NumCacheClusters=None, PreferredCacheClusterAZs=None, NumNodeGroups=None, ReplicasPerNodeGroup=None, NodeGroupConfiguration=None, CacheNodeType=None, Engine=None, EngineVersion=N... | [
"def",
"create_replication_group",
"(",
"ReplicationGroupId",
"=",
"None",
",",
"ReplicationGroupDescription",
"=",
"None",
",",
"PrimaryClusterId",
"=",
"None",
",",
"AutomaticFailoverEnabled",
"=",
"None",
",",
"NumCacheClusters",
"=",
"None",
",",
"PreferredCacheClus... | Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.
A Redis (cluster mode disabled) replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are asynchronously pr... | [
"Creates",
"a",
"Redis",
"(",
"cluster",
"mode",
"disabled",
")",
"or",
"a",
"Redis",
"(",
"cluster",
"mode",
"enabled",
")",
"replication",
"group",
".",
"A",
"Redis",
"(",
"cluster",
"mode",
"disabled",
")",
"replication",
"group",
"is",
"a",
"collection... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L702-L1009 | train |
wavycloud/pyboto3 | pyboto3/elasticache.py | modify_cache_cluster | def modify_cache_cluster(CacheClusterId=None, NumCacheNodes=None, CacheNodeIdsToRemove=None, AZMode=None, NewAvailabilityZones=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, NotificationTopicStatus=None, ApplyImmediate... | python | def modify_cache_cluster(CacheClusterId=None, NumCacheNodes=None, CacheNodeIdsToRemove=None, AZMode=None, NewAvailabilityZones=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, NotificationTopicStatus=None, ApplyImmediate... | [
"def",
"modify_cache_cluster",
"(",
"CacheClusterId",
"=",
"None",
",",
"NumCacheNodes",
"=",
"None",
",",
"CacheNodeIdsToRemove",
"=",
"None",
",",
"AZMode",
"=",
"None",
",",
"NewAvailabilityZones",
"=",
"None",
",",
"CacheSecurityGroupNames",
"=",
"None",
",",
... | Modifies the settings for a cache cluster. You can use this operation to change one or more cluster configuration parameters by specifying the parameters and the new values.
See also: AWS API Documentation
:example: response = client.modify_cache_cluster(
CacheClusterId='string',
NumCa... | [
"Modifies",
"the",
"settings",
"for",
"a",
"cache",
"cluster",
".",
"You",
"can",
"use",
"this",
"operation",
"to",
"change",
"one",
"or",
"more",
"cluster",
"configuration",
"parameters",
"by",
"specifying",
"the",
"parameters",
"and",
"the",
"new",
"values",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L2486-L2737 | train |
wavycloud/pyboto3 | pyboto3/elasticache.py | modify_replication_group | def modify_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, SnapshottingClusterId=None, AutomaticFailoverEnabled=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, Notific... | python | def modify_replication_group(ReplicationGroupId=None, ReplicationGroupDescription=None, PrimaryClusterId=None, SnapshottingClusterId=None, AutomaticFailoverEnabled=None, CacheSecurityGroupNames=None, SecurityGroupIds=None, PreferredMaintenanceWindow=None, NotificationTopicArn=None, CacheParameterGroupName=None, Notific... | [
"def",
"modify_replication_group",
"(",
"ReplicationGroupId",
"=",
"None",
",",
"ReplicationGroupDescription",
"=",
"None",
",",
"PrimaryClusterId",
"=",
"None",
",",
"SnapshottingClusterId",
"=",
"None",
",",
"AutomaticFailoverEnabled",
"=",
"None",
",",
"CacheSecurity... | Modifies the settings for a replication group.
See also: AWS API Documentation
:example: response = client.modify_replication_group(
ReplicationGroupId='string',
ReplicationGroupDescription='string',
PrimaryClusterId='string',
SnapshottingClusterId='string',
Aut... | [
"Modifies",
"the",
"settings",
"for",
"a",
"replication",
"group",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"modify_replication_group",
"(",
"ReplicationGroupId",
"=",
"string",
"ReplicationGroupD... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L2838-L3020 | train |
wavycloud/pyboto3 | pyboto3/emr.py | run_job_flow | def run_job_flow(Name=None, LogUri=None, AdditionalInfo=None, AmiVersion=None, ReleaseLabel=None, Instances=None, Steps=None, BootstrapActions=None, SupportedProducts=None, NewSupportedProducts=None, Applications=None, Configurations=None, VisibleToAllUsers=None, JobFlowRole=None, ServiceRole=None, Tags=None, SecurityC... | python | def run_job_flow(Name=None, LogUri=None, AdditionalInfo=None, AmiVersion=None, ReleaseLabel=None, Instances=None, Steps=None, BootstrapActions=None, SupportedProducts=None, NewSupportedProducts=None, Applications=None, Configurations=None, VisibleToAllUsers=None, JobFlowRole=None, ServiceRole=None, Tags=None, SecurityC... | [
"def",
"run_job_flow",
"(",
"Name",
"=",
"None",
",",
"LogUri",
"=",
"None",
",",
"AdditionalInfo",
"=",
"None",
",",
"AmiVersion",
"=",
"None",
",",
"ReleaseLabel",
"=",
"None",
",",
"Instances",
"=",
"None",
",",
"Steps",
"=",
"None",
",",
"BootstrapAc... | RunJobFlow creates and starts running a new cluster (job flow). The cluster runs the steps specified. After the steps complete, the cluster stops and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAli... | [
"RunJobFlow",
"creates",
"and",
"starts",
"running",
"a",
"new",
"cluster",
"(",
"job",
"flow",
")",
".",
"The",
"cluster",
"runs",
"the",
"steps",
"specified",
".",
"After",
"the",
"steps",
"complete",
"the",
"cluster",
"stops",
"and",
"the",
"HDFS",
"par... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/emr.py#L1777-L2324 | train |
wavycloud/pyboto3 | pyboto3/machinelearning.py | describe_batch_predictions | def describe_batch_predictions(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of BatchPrediction operations that match the search criteria in the request.
See also: AWS API Documentation
:e... | python | def describe_batch_predictions(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of BatchPrediction operations that match the search criteria in the request.
See also: AWS API Documentation
:e... | [
"def",
"describe_batch_predictions",
"(",
"FilterVariable",
"=",
"None",
",",
"EQ",
"=",
"None",
",",
"GT",
"=",
"None",
",",
"LT",
"=",
"None",
",",
"GE",
"=",
"None",
",",
"LE",
"=",
"None",
",",
"NE",
"=",
"None",
",",
"Prefix",
"=",
"None",
","... | Returns a list of BatchPrediction operations that match the search criteria in the request.
See also: AWS API Documentation
:example: response = client.describe_batch_predictions(
FilterVariable='CreatedAt'|'LastUpdatedAt'|'Status'|'Name'|'IAMUser'|'MLModelId'|'DataSourceId'|'DataURI',
... | [
"Returns",
"a",
"list",
"of",
"BatchPrediction",
"operations",
"that",
"match",
"the",
"search",
"criteria",
"in",
"the",
"request",
".",
"See",
"also",
":",
"AWS",
"API",
"Documentation",
":",
"example",
":",
"response",
"=",
"client",
".",
"describe_batch_pr... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/machinelearning.py#L752-L857 | train |
wavycloud/pyboto3 | pyboto3/dynamodb.py | delete_item | def delete_item(TableName=None, Key=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Deletes a single item in a table by primary key. You ... | python | def delete_item(TableName=None, Key=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Deletes a single item in a table by primary key. You ... | [
"def",
"delete_item",
"(",
"TableName",
"=",
"None",
",",
"Key",
"=",
"None",
",",
"Expected",
"=",
"None",
",",
"ConditionalOperator",
"=",
"None",
",",
"ReturnValues",
"=",
"None",
",",
"ReturnConsumedCapacity",
"=",
"None",
",",
"ReturnItemCollectionMetrics",... | Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.
In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.
... | [
"Deletes",
"a",
"single",
"item",
"in",
"a",
"table",
"by",
"primary",
"key",
".",
"You",
"can",
"perform",
"a",
"conditional",
"delete",
"operation",
"that",
"deletes",
"the",
"item",
"if",
"it",
"exists",
"or",
"if",
"it",
"has",
"an",
"expected",
"att... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L1125-L1591 | train |
wavycloud/pyboto3 | pyboto3/dynamodb.py | put_item | def put_item(TableName=None, Item=None, Expected=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionalOperator=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Creates a new item, or replaces an old item with a new ... | python | def put_item(TableName=None, Item=None, Expected=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, ConditionalOperator=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Creates a new item, or replaces an old item with a new ... | [
"def",
"put_item",
"(",
"TableName",
"=",
"None",
",",
"Item",
"=",
"None",
",",
"Expected",
"=",
"None",
",",
"ReturnValues",
"=",
"None",
",",
"ReturnConsumedCapacity",
"=",
"None",
",",
"ReturnItemCollectionMetrics",
"=",
"None",
",",
"ConditionalOperator",
... | Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist... | [
"Creates",
"a",
"new",
"item",
"or",
"replaces",
"an",
"old",
"item",
"with",
"a",
"new",
"item",
".",
"If",
"an",
"item",
"that",
"has",
"the",
"same",
"primary",
"key",
"as",
"the",
"new",
"item",
"already",
"exists",
"in",
"the",
"specified",
"table... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L2186-L2655 | train |
wavycloud/pyboto3 | pyboto3/dynamodb.py | query | def query(TableName=None, IndexName=None, Select=None, AttributesToGet=None, Limit=None, ConsistentRead=None, KeyConditions=None, QueryFilter=None, ConditionalOperator=None, ScanIndexForward=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, ProjectionExpression=None, FilterExpression=None, KeyConditionExpressi... | python | def query(TableName=None, IndexName=None, Select=None, AttributesToGet=None, Limit=None, ConsistentRead=None, KeyConditions=None, QueryFilter=None, ConditionalOperator=None, ScanIndexForward=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, ProjectionExpression=None, FilterExpression=None, KeyConditionExpressi... | [
"def",
"query",
"(",
"TableName",
"=",
"None",
",",
"IndexName",
"=",
"None",
",",
"Select",
"=",
"None",
",",
"AttributesToGet",
"=",
"None",
",",
"Limit",
"=",
"None",
",",
"ConsistentRead",
"=",
"None",
",",
"KeyConditions",
"=",
"None",
",",
"QueryFi... | A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index.
Use the KeyConditionExpression parameter to provide a specific value for the partition key. The Query operation will return all of the items from the table or index with that partition key value... | [
"A",
"Query",
"operation",
"uses",
"the",
"primary",
"key",
"of",
"a",
"table",
"or",
"a",
"secondary",
"index",
"to",
"directly",
"access",
"items",
"from",
"that",
"table",
"or",
"index",
".",
"Use",
"the",
"KeyConditionExpression",
"parameter",
"to",
"pro... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L2657-L3215 | train |
wavycloud/pyboto3 | pyboto3/dynamodb.py | scan | def scan(TableName=None, IndexName=None, AttributesToGet=None, Limit=None, Select=None, ScanFilter=None, ConditionalOperator=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, TotalSegments=None, Segment=None, ProjectionExpression=None, FilterExpression=None, ExpressionAttributeNames=None, ExpressionAttributeVa... | python | def scan(TableName=None, IndexName=None, AttributesToGet=None, Limit=None, Select=None, ScanFilter=None, ConditionalOperator=None, ExclusiveStartKey=None, ReturnConsumedCapacity=None, TotalSegments=None, Segment=None, ProjectionExpression=None, FilterExpression=None, ExpressionAttributeNames=None, ExpressionAttributeVa... | [
"def",
"scan",
"(",
"TableName",
"=",
"None",
",",
"IndexName",
"=",
"None",
",",
"AttributesToGet",
"=",
"None",
",",
"Limit",
"=",
"None",
",",
"Select",
"=",
"None",
",",
"ScanFilter",
"=",
"None",
",",
"ConditionalOperator",
"=",
"None",
",",
"Exclus... | The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a FilterExpression operation.
If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and result... | [
"The",
"Scan",
"operation",
"returns",
"one",
"or",
"more",
"items",
"and",
"item",
"attributes",
"by",
"accessing",
"every",
"item",
"in",
"a",
"table",
"or",
"a",
"secondary",
"index",
".",
"To",
"have",
"DynamoDB",
"return",
"fewer",
"items",
"you",
"ca... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L3217-L3660 | train |
wavycloud/pyboto3 | pyboto3/dynamodb.py | update_item | def update_item(TableName=None, Key=None, AttributeUpdates=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, UpdateExpression=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Edits a... | python | def update_item(TableName=None, Key=None, AttributeUpdates=None, Expected=None, ConditionalOperator=None, ReturnValues=None, ReturnConsumedCapacity=None, ReturnItemCollectionMetrics=None, UpdateExpression=None, ConditionExpression=None, ExpressionAttributeNames=None, ExpressionAttributeValues=None):
"""
Edits a... | [
"def",
"update_item",
"(",
"TableName",
"=",
"None",
",",
"Key",
"=",
"None",
",",
"AttributeUpdates",
"=",
"None",
",",
"Expected",
"=",
"None",
",",
"ConditionalOperator",
"=",
"None",
",",
"ReturnValues",
"=",
"None",
",",
"ReturnConsumedCapacity",
"=",
"... | Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has cer... | [
"Edits",
"an",
"existing",
"item",
"s",
"attributes",
"or",
"adds",
"a",
"new",
"item",
"to",
"the",
"table",
"if",
"it",
"does",
"not",
"already",
"exist",
".",
"You",
"can",
"put",
"delete",
"or",
"add",
"attribute",
"values",
".",
"You",
"can",
"als... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L3728-L4306 | train |
wavycloud/pyboto3 | pyboto3/ecs.py | create_service | def create_service(cluster=None, serviceName=None, taskDefinition=None, loadBalancers=None, desiredCount=None, clientToken=None, role=None, deploymentConfiguration=None, placementConstraints=None, placementStrategy=None):
"""
Runs and maintains a desired number of tasks from a specified task definition. If the ... | python | def create_service(cluster=None, serviceName=None, taskDefinition=None, loadBalancers=None, desiredCount=None, clientToken=None, role=None, deploymentConfiguration=None, placementConstraints=None, placementStrategy=None):
"""
Runs and maintains a desired number of tasks from a specified task definition. If the ... | [
"def",
"create_service",
"(",
"cluster",
"=",
"None",
",",
"serviceName",
"=",
"None",
",",
"taskDefinition",
"=",
"None",
",",
"loadBalancers",
"=",
"None",
",",
"desiredCount",
"=",
"None",
",",
"clientToken",
"=",
"None",
",",
"role",
"=",
"None",
",",
... | Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount , Amazon ECS spawns another copy of the task in the specified cluster. To update an existing service, see UpdateService .
In addition to maintaining the desired count ... | [
"Runs",
"and",
"maintains",
"a",
"desired",
"number",
"of",
"tasks",
"from",
"a",
"specified",
"task",
"definition",
".",
"If",
"the",
"number",
"of",
"tasks",
"running",
"in",
"a",
"service",
"drops",
"below",
"desiredCount",
"Amazon",
"ECS",
"spawns",
"ano... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ecs.py#L76-L313 | train |
wavycloud/pyboto3 | pyboto3/route53domains.py | register_domain | def register_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None):
"""
This operation registers a domain. Domains are reg... | python | def register_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None):
"""
This operation registers a domain. Domains are reg... | [
"def",
"register_domain",
"(",
"DomainName",
"=",
"None",
",",
"IdnLangCode",
"=",
"None",
",",
"DurationInYears",
"=",
"None",
",",
"AutoRenew",
"=",
"None",
",",
"AdminContact",
"=",
"None",
",",
"RegistrantContact",
"=",
"None",
",",
"TechContact",
"=",
"... | This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.
When you register a domain, Amazon Route 53 does the following:
See also: AWS API Documentation
:example: response = client.re... | [
"This",
"operation",
"registers",
"a",
"domain",
".",
"Domains",
"are",
"registered",
"by",
"the",
"AWS",
"registrar",
"partner",
"Gandi",
".",
"For",
"some",
"top",
"-",
"level",
"domains",
"(",
"TLDs",
")",
"this",
"operation",
"requires",
"extra",
"parame... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/route53domains.py#L570-L926 | train |
wavycloud/pyboto3 | pyboto3/route53domains.py | transfer_domain | def transfer_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, Nameservers=None, AuthCode=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None):
"""
This operation tr... | python | def transfer_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, Nameservers=None, AuthCode=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None):
"""
This operation tr... | [
"def",
"transfer_domain",
"(",
"DomainName",
"=",
"None",
",",
"IdnLangCode",
"=",
"None",
",",
"DurationInYears",
"=",
"None",
",",
"Nameservers",
"=",
"None",
",",
"AuthCode",
"=",
"None",
",",
"AutoRenew",
"=",
"None",
",",
"AdminContact",
"=",
"None",
... | This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.
For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see Transferring Registration fo... | [
"This",
"operation",
"transfers",
"a",
"domain",
"from",
"another",
"registrar",
"to",
"Amazon",
"Route",
"53",
".",
"When",
"the",
"transfer",
"is",
"complete",
"the",
"domain",
"is",
"registered",
"with",
"the",
"AWS",
"registrar",
"partner",
"Gandi",
".",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/route53domains.py#L1016-L1239 | train |
wavycloud/pyboto3 | pyboto3/iam.py | simulate_custom_policy | def simulate_custom_policy(PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies and optionally a resource-based policy works with a... | python | def simulate_custom_policy(PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies and optionally a resource-based policy works with a... | [
"def",
"simulate_custom_policy",
"(",
"PolicyInputList",
"=",
"None",
",",
"ActionNames",
"=",
"None",
",",
"ResourceArns",
"=",
"None",
",",
"ResourcePolicy",
"=",
"None",
",",
"ResourceOwner",
"=",
"None",
",",
"CallerArn",
"=",
"None",
",",
"ContextEntries",
... | Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as strings.
The simulation does not perform the API actions; it only checks the authorization to determine if the s... | [
"Simulate",
"how",
"a",
"set",
"of",
"IAM",
"policies",
"and",
"optionally",
"a",
"resource",
"-",
"based",
"policy",
"works",
"with",
"a",
"list",
"of",
"API",
"actions",
"and",
"AWS",
"resources",
"to",
"determine",
"the",
"policies",
"effective",
"permiss... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4244-L4413 | train |
wavycloud/pyboto3 | pyboto3/iam.py | simulate_principal_policy | def simulate_principal_policy(PolicySourceArn=None, PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies attached to an IAM entity ... | python | def simulate_principal_policy(PolicySourceArn=None, PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies attached to an IAM entity ... | [
"def",
"simulate_principal_policy",
"(",
"PolicySourceArn",
"=",
"None",
",",
"PolicyInputList",
"=",
"None",
",",
"ActionNames",
"=",
"None",
",",
"ResourceArns",
"=",
"None",
",",
"ResourcePolicy",
"=",
"None",
",",
"ResourceOwner",
"=",
"None",
",",
"CallerAr... | Simulate how a set of IAM policies attached to an IAM entity works with a list of API actions and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that t... | [
"Simulate",
"how",
"a",
"set",
"of",
"IAM",
"policies",
"attached",
"to",
"an",
"IAM",
"entity",
"works",
"with",
"a",
"list",
"of",
"API",
"actions",
"and",
"AWS",
"resources",
"to",
"determine",
"the",
"policies",
"effective",
"permissions",
".",
"The",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4415-L4592 | train |
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",
"."... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4640-L4718 | train |
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",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/devicefarm.py#L126-L208 | train |
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",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/devicefarm.py#L3221-L3301 | train |
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",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/importexport.py#L180-L257 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L112-L195 | train |
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",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L3668-L3801 | train |
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",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/apigateway.py#L3890-L4024 | train |
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"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/workdocs.py#L704-L784 | train |
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",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L123-L253 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L255-L386 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudformation.py#L1319-L1460 | train |
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",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/support.py#L125-L214 | train |
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"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/support.py#L244-L352 | train |
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",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L1411-L1688 | train |
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",
... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L1690-L1837 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L3792-L3946 | train |
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",
"("... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cognitoidentityprovider.py#L3948-L4095 | train |
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",... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L209-L390 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L453-L587 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L1927-L2087 | train |
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... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L2295-L2425 | train |
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",
"... | 924957ccf994303713a4eed90b775ff2ab95b2e5 | https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/s3.py#L3118-L3236 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.