repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReferenceSet.setSpeciesFromJson
def setSpeciesFromJson(self, speciesJson): """ Sets the species, an OntologyTerm, to the specified value, given as a JSON string. See the documentation for details of this field. """ try: parsed = protocol.fromJson(speciesJson, protocol.OntologyTerm) ...
python
def setSpeciesFromJson(self, speciesJson): """ Sets the species, an OntologyTerm, to the specified value, given as a JSON string. See the documentation for details of this field. """ try: parsed = protocol.fromJson(speciesJson, protocol.OntologyTerm) ...
[ "def", "setSpeciesFromJson", "(", "self", ",", "speciesJson", ")", ":", "try", ":", "parsed", "=", "protocol", ".", "fromJson", "(", "speciesJson", ",", "protocol", ".", "OntologyTerm", ")", "except", ":", "raise", "exceptions", ".", "InvalidJsonException", "(...
Sets the species, an OntologyTerm, to the specified value, given as a JSON string. See the documentation for details of this field.
[ "Sets", "the", "species", "an", "OntologyTerm", "to", "the", "specified", "value", "given", "as", "a", "JSON", "string", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L64-L75
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReferenceSet.getReferenceByName
def getReferenceByName(self, name): """ Returns the reference with the specified name. """ if name not in self._referenceNameMap: raise exceptions.ReferenceNameNotFoundException(name) return self._referenceNameMap[name]
python
def getReferenceByName(self, name): """ Returns the reference with the specified name. """ if name not in self._referenceNameMap: raise exceptions.ReferenceNameNotFoundException(name) return self._referenceNameMap[name]
[ "def", "getReferenceByName", "(", "self", ",", "name", ")", ":", "if", "name", "not", "in", "self", ".", "_referenceNameMap", ":", "raise", "exceptions", ".", "ReferenceNameNotFoundException", "(", "name", ")", "return", "self", ".", "_referenceNameMap", "[", ...
Returns the reference with the specified name.
[ "Returns", "the", "reference", "with", "the", "specified", "name", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L119-L125
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReferenceSet.getReference
def getReference(self, id_): """ Returns the Reference with the specified ID or raises a ReferenceNotFoundException if it does not exist. """ if id_ not in self._referenceIdMap: raise exceptions.ReferenceNotFoundException(id_) return self._referenceIdMap[id_]
python
def getReference(self, id_): """ Returns the Reference with the specified ID or raises a ReferenceNotFoundException if it does not exist. """ if id_ not in self._referenceIdMap: raise exceptions.ReferenceNotFoundException(id_) return self._referenceIdMap[id_]
[ "def", "getReference", "(", "self", ",", "id_", ")", ":", "if", "id_", "not", "in", "self", ".", "_referenceIdMap", ":", "raise", "exceptions", ".", "ReferenceNotFoundException", "(", "id_", ")", "return", "self", ".", "_referenceIdMap", "[", "id_", "]" ]
Returns the Reference with the specified ID or raises a ReferenceNotFoundException if it does not exist.
[ "Returns", "the", "Reference", "with", "the", "specified", "ID", "or", "raises", "a", "ReferenceNotFoundException", "if", "it", "does", "not", "exist", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L127-L134
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReferenceSet.getMd5Checksum
def getMd5Checksum(self): """ Returns the MD5 checksum for this reference set. This checksum is calculated by making a list of `Reference.md5checksum` for all `Reference`s in this set. We then sort this list, and take the MD5 hash of all the strings concatenated together. ...
python
def getMd5Checksum(self): """ Returns the MD5 checksum for this reference set. This checksum is calculated by making a list of `Reference.md5checksum` for all `Reference`s in this set. We then sort this list, and take the MD5 hash of all the strings concatenated together. ...
[ "def", "getMd5Checksum", "(", "self", ")", ":", "references", "=", "sorted", "(", "self", ".", "getReferences", "(", ")", ",", "key", "=", "lambda", "ref", ":", "ref", ".", "getMd5Checksum", "(", ")", ")", "checksums", "=", "''", ".", "join", "(", "[...
Returns the MD5 checksum for this reference set. This checksum is calculated by making a list of `Reference.md5checksum` for all `Reference`s in this set. We then sort this list, and take the MD5 hash of all the strings concatenated together.
[ "Returns", "the", "MD5", "checksum", "for", "this", "reference", "set", ".", "This", "checksum", "is", "calculated", "by", "making", "a", "list", "of", "Reference", ".", "md5checksum", "for", "all", "Reference", "s", "in", "this", "set", ".", "We", "then",...
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L136-L148
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReferenceSet.toProtocolElement
def toProtocolElement(self): """ Returns the GA4GH protocol representation of this ReferenceSet. """ ret = protocol.ReferenceSet() ret.assembly_id = pb.string(self.getAssemblyId()) ret.description = pb.string(self.getDescription()) ret.id = self.getId() re...
python
def toProtocolElement(self): """ Returns the GA4GH protocol representation of this ReferenceSet. """ ret = protocol.ReferenceSet() ret.assembly_id = pb.string(self.getAssemblyId()) ret.description = pb.string(self.getDescription()) ret.id = self.getId() re...
[ "def", "toProtocolElement", "(", "self", ")", ":", "ret", "=", "protocol", ".", "ReferenceSet", "(", ")", "ret", ".", "assembly_id", "=", "pb", ".", "string", "(", "self", ".", "getAssemblyId", "(", ")", ")", "ret", ".", "description", "=", "pb", ".", ...
Returns the GA4GH protocol representation of this ReferenceSet.
[ "Returns", "the", "GA4GH", "protocol", "representation", "of", "this", "ReferenceSet", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L201-L220
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReference.toProtocolElement
def toProtocolElement(self): """ Returns the GA4GH protocol representation of this Reference. """ reference = protocol.Reference() reference.id = self.getId() reference.is_derived = self.getIsDerived() reference.length = self.getLength() reference.md5check...
python
def toProtocolElement(self): """ Returns the GA4GH protocol representation of this Reference. """ reference = protocol.Reference() reference.id = self.getId() reference.is_derived = self.getIsDerived() reference.length = self.getLength() reference.md5check...
[ "def", "toProtocolElement", "(", "self", ")", ":", "reference", "=", "protocol", ".", "Reference", "(", ")", "reference", ".", "id", "=", "self", ".", "getId", "(", ")", "reference", ".", "is_derived", "=", "self", ".", "getIsDerived", "(", ")", "referen...
Returns the GA4GH protocol representation of this Reference.
[ "Returns", "the", "GA4GH", "protocol", "representation", "of", "this", "Reference", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L344-L363
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
AbstractReference.checkQueryRange
def checkQueryRange(self, start, end): """ Checks to ensure that the query range is valid within this reference. If not, raise ReferenceRangeErrorException. """ condition = ( (start < 0 or end > self.getLength()) or start > end or start == end) if ...
python
def checkQueryRange(self, start, end): """ Checks to ensure that the query range is valid within this reference. If not, raise ReferenceRangeErrorException. """ condition = ( (start < 0 or end > self.getLength()) or start > end or start == end) if ...
[ "def", "checkQueryRange", "(", "self", ",", "start", ",", "end", ")", ":", "condition", "=", "(", "(", "start", "<", "0", "or", "end", ">", "self", ".", "getLength", "(", ")", ")", "or", "start", ">", "end", "or", "start", "==", "end", ")", "if",...
Checks to ensure that the query range is valid within this reference. If not, raise ReferenceRangeErrorException.
[ "Checks", "to", "ensure", "that", "the", "query", "range", "is", "valid", "within", "this", "reference", ".", "If", "not", "raise", "ReferenceRangeErrorException", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L365-L375
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
HtslibReferenceSet.populateFromFile
def populateFromFile(self, dataUrl): """ Populates the instance variables of this ReferencSet from the data URL. """ self._dataUrl = dataUrl fastaFile = self.getFastaFile() for referenceName in fastaFile.references: reference = HtslibReference(self, re...
python
def populateFromFile(self, dataUrl): """ Populates the instance variables of this ReferencSet from the data URL. """ self._dataUrl = dataUrl fastaFile = self.getFastaFile() for referenceName in fastaFile.references: reference = HtslibReference(self, re...
[ "def", "populateFromFile", "(", "self", ",", "dataUrl", ")", ":", "self", ".", "_dataUrl", "=", "dataUrl", "fastaFile", "=", "self", ".", "getFastaFile", "(", ")", "for", "referenceName", "in", "fastaFile", ".", "references", ":", "reference", "=", "HtslibRe...
Populates the instance variables of this ReferencSet from the data URL.
[ "Populates", "the", "instance", "variables", "of", "this", "ReferencSet", "from", "the", "data", "URL", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L463-L478
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
HtslibReferenceSet.populateFromRow
def populateFromRow(self, referenceSetRecord): """ Populates this reference set from the values in the specified DB row. """ self._dataUrl = referenceSetRecord.dataurl self._description = referenceSetRecord.description self._assemblyId = referenceSetRecord.assembl...
python
def populateFromRow(self, referenceSetRecord): """ Populates this reference set from the values in the specified DB row. """ self._dataUrl = referenceSetRecord.dataurl self._description = referenceSetRecord.description self._assemblyId = referenceSetRecord.assembl...
[ "def", "populateFromRow", "(", "self", ",", "referenceSetRecord", ")", ":", "self", ".", "_dataUrl", "=", "referenceSetRecord", ".", "dataurl", "self", ".", "_description", "=", "referenceSetRecord", ".", "description", "self", ".", "_assemblyId", "=", "referenceS...
Populates this reference set from the values in the specified DB row.
[ "Populates", "this", "reference", "set", "from", "the", "values", "in", "the", "specified", "DB", "row", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L480-L495
ga4gh/ga4gh-server
ga4gh/server/datamodel/references.py
HtslibReference.populateFromRow
def populateFromRow(self, referenceRecord): """ Populates this reference from the values in the specified DB row. """ self._length = referenceRecord.length self._isDerived = bool(referenceRecord.isderived) self._md5checksum = referenceRecord.md5checksum species = ...
python
def populateFromRow(self, referenceRecord): """ Populates this reference from the values in the specified DB row. """ self._length = referenceRecord.length self._isDerived = bool(referenceRecord.isderived) self._md5checksum = referenceRecord.md5checksum species = ...
[ "def", "populateFromRow", "(", "self", ",", "referenceRecord", ")", ":", "self", ".", "_length", "=", "referenceRecord", ".", "length", "self", ".", "_isDerived", "=", "bool", "(", "referenceRecord", ".", "isderived", ")", "self", ".", "_md5checksum", "=", "...
Populates this reference from the values in the specified DB row.
[ "Populates", "this", "reference", "from", "the", "values", "in", "the", "specified", "DB", "row", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/references.py#L521-L533
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._extractAssociationsDetails
def _extractAssociationsDetails(self, associations): """ Given a set of results from our search query, return the `details` (feature,environment,phenotype) """ detailedURIRef = [] for row in associations.bindings: if 'feature' in row: detailedU...
python
def _extractAssociationsDetails(self, associations): """ Given a set of results from our search query, return the `details` (feature,environment,phenotype) """ detailedURIRef = [] for row in associations.bindings: if 'feature' in row: detailedU...
[ "def", "_extractAssociationsDetails", "(", "self", ",", "associations", ")", ":", "detailedURIRef", "=", "[", "]", "for", "row", "in", "associations", ".", "bindings", ":", "if", "'feature'", "in", "row", ":", "detailedURIRef", ".", "append", "(", "row", "["...
Given a set of results from our search query, return the `details` (feature,environment,phenotype)
[ "Given", "a", "set", "of", "results", "from", "our", "search", "query", "return", "the", "details", "(", "feature", "environment", "phenotype", ")" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L102-L113
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._detailTuples
def _detailTuples(self, uriRefs): """ Given a list of uriRefs, return a list of dicts: {'subject': s, 'predicate': p, 'object': o } all values are strings """ details = [] for uriRef in uriRefs: for subject, predicate, object_ in self._rdfGraph.triples...
python
def _detailTuples(self, uriRefs): """ Given a list of uriRefs, return a list of dicts: {'subject': s, 'predicate': p, 'object': o } all values are strings """ details = [] for uriRef in uriRefs: for subject, predicate, object_ in self._rdfGraph.triples...
[ "def", "_detailTuples", "(", "self", ",", "uriRefs", ")", ":", "details", "=", "[", "]", "for", "uriRef", "in", "uriRefs", ":", "for", "subject", ",", "predicate", ",", "object_", "in", "self", ".", "_rdfGraph", ".", "triples", "(", "(", "uriRef", ",",...
Given a list of uriRefs, return a list of dicts: {'subject': s, 'predicate': p, 'object': o } all values are strings
[ "Given", "a", "list", "of", "uriRefs", "return", "a", "list", "of", "dicts", ":", "{", "subject", ":", "s", "predicate", ":", "p", "object", ":", "o", "}", "all", "values", "are", "strings" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L115-L130
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._bindingsToDict
def _bindingsToDict(self, bindings): """ Given a binding from the sparql query result, create a dict of plain text """ myDict = {} for key, val in bindings.iteritems(): myDict[key.toPython().replace('?', '')] = val.toPython() return myDict
python
def _bindingsToDict(self, bindings): """ Given a binding from the sparql query result, create a dict of plain text """ myDict = {} for key, val in bindings.iteritems(): myDict[key.toPython().replace('?', '')] = val.toPython() return myDict
[ "def", "_bindingsToDict", "(", "self", ",", "bindings", ")", ":", "myDict", "=", "{", "}", "for", "key", ",", "val", "in", "bindings", ".", "iteritems", "(", ")", ":", "myDict", "[", "key", ".", "toPython", "(", ")", ".", "replace", "(", "'?'", ","...
Given a binding from the sparql query result, create a dict of plain text
[ "Given", "a", "binding", "from", "the", "sparql", "query", "result", "create", "a", "dict", "of", "plain", "text" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L132-L140
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._addDataFile
def _addDataFile(self, filename): """ Given a filename, add it to the graph """ if filename.endswith('.ttl'): self._rdfGraph.parse(filename, format='n3') else: self._rdfGraph.parse(filename, format='xml')
python
def _addDataFile(self, filename): """ Given a filename, add it to the graph """ if filename.endswith('.ttl'): self._rdfGraph.parse(filename, format='n3') else: self._rdfGraph.parse(filename, format='xml')
[ "def", "_addDataFile", "(", "self", ",", "filename", ")", ":", "if", "filename", ".", "endswith", "(", "'.ttl'", ")", ":", "self", ".", "_rdfGraph", ".", "parse", "(", "filename", ",", "format", "=", "'n3'", ")", "else", ":", "self", ".", "_rdfGraph", ...
Given a filename, add it to the graph
[ "Given", "a", "filename", "add", "it", "to", "the", "graph" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L142-L149
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._getDetails
def _getDetails(self, uriRef, associations_details): """ Given a uriRef, return a dict of all the details for that Ref use the uriRef as the 'id' of the dict """ associationDetail = {} for detail in associations_details: if detail['subject'] == uriRef: ...
python
def _getDetails(self, uriRef, associations_details): """ Given a uriRef, return a dict of all the details for that Ref use the uriRef as the 'id' of the dict """ associationDetail = {} for detail in associations_details: if detail['subject'] == uriRef: ...
[ "def", "_getDetails", "(", "self", ",", "uriRef", ",", "associations_details", ")", ":", "associationDetail", "=", "{", "}", "for", "detail", "in", "associations_details", ":", "if", "detail", "[", "'subject'", "]", "==", "uriRef", ":", "associationDetail", "[...
Given a uriRef, return a dict of all the details for that Ref use the uriRef as the 'id' of the dict
[ "Given", "a", "uriRef", "return", "a", "dict", "of", "all", "the", "details", "for", "that", "Ref", "use", "the", "uriRef", "as", "the", "id", "of", "the", "dict" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L151-L161
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatExternalIdentifiers
def _formatExternalIdentifiers(self, element, element_type): """ Formats several external identifiers for query """ elementClause = None elements = [] if not issubclass(element.__class__, dict): element = protocol.toJsonDict(element) if element['extern...
python
def _formatExternalIdentifiers(self, element, element_type): """ Formats several external identifiers for query """ elementClause = None elements = [] if not issubclass(element.__class__, dict): element = protocol.toJsonDict(element) if element['extern...
[ "def", "_formatExternalIdentifiers", "(", "self", ",", "element", ",", "element_type", ")", ":", "elementClause", "=", "None", "elements", "=", "[", "]", "if", "not", "issubclass", "(", "element", ".", "__class__", ",", "dict", ")", ":", "element", "=", "p...
Formats several external identifiers for query
[ "Formats", "several", "external", "identifiers", "for", "query" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L163-L176
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatExternalIdentifier
def _formatExternalIdentifier(self, element, element_type): """ Formats a single external identifier for query """ if "http" not in element['database']: term = "{}:{}".format(element['database'], element['identifier']) namespaceTerm = self._toNamespaceURL(term) ...
python
def _formatExternalIdentifier(self, element, element_type): """ Formats a single external identifier for query """ if "http" not in element['database']: term = "{}:{}".format(element['database'], element['identifier']) namespaceTerm = self._toNamespaceURL(term) ...
[ "def", "_formatExternalIdentifier", "(", "self", ",", "element", ",", "element_type", ")", ":", "if", "\"http\"", "not", "in", "element", "[", "'database'", "]", ":", "term", "=", "\"{}:{}\"", ".", "format", "(", "element", "[", "'database'", "]", ",", "el...
Formats a single external identifier for query
[ "Formats", "a", "single", "external", "identifier", "for", "query" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L178-L189
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatOntologyTerm
def _formatOntologyTerm(self, element, element_type): """ Formats the ontology terms for query """ elementClause = None if isinstance(element, dict) and element.get('terms'): elements = [] for _term in element['terms']: if _term.get('id'): ...
python
def _formatOntologyTerm(self, element, element_type): """ Formats the ontology terms for query """ elementClause = None if isinstance(element, dict) and element.get('terms'): elements = [] for _term in element['terms']: if _term.get('id'): ...
[ "def", "_formatOntologyTerm", "(", "self", ",", "element", ",", "element_type", ")", ":", "elementClause", "=", "None", "if", "isinstance", "(", "element", ",", "dict", ")", "and", "element", ".", "get", "(", "'terms'", ")", ":", "elements", "=", "[", "]...
Formats the ontology terms for query
[ "Formats", "the", "ontology", "terms", "for", "query" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L191-L206
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatOntologyTermObject
def _formatOntologyTermObject(self, terms, element_type): """ Formats the ontology term object for query """ elementClause = None if not isinstance(terms, collections.Iterable): terms = [terms] elements = [] for term in terms: if term.term_...
python
def _formatOntologyTermObject(self, terms, element_type): """ Formats the ontology term object for query """ elementClause = None if not isinstance(terms, collections.Iterable): terms = [terms] elements = [] for term in terms: if term.term_...
[ "def", "_formatOntologyTermObject", "(", "self", ",", "terms", ",", "element_type", ")", ":", "elementClause", "=", "None", "if", "not", "isinstance", "(", "terms", ",", "collections", ".", "Iterable", ")", ":", "terms", "=", "[", "terms", "]", "elements", ...
Formats the ontology term object for query
[ "Formats", "the", "ontology", "term", "object", "for", "query" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L208-L224
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatIds
def _formatIds(self, element, element_type): """ Formats a set of identifiers for query """ elementClause = None if isinstance(element, collections.Iterable): elements = [] for _id in element: elements.append('?{} = <{}> '.format( ...
python
def _formatIds(self, element, element_type): """ Formats a set of identifiers for query """ elementClause = None if isinstance(element, collections.Iterable): elements = [] for _id in element: elements.append('?{} = <{}> '.format( ...
[ "def", "_formatIds", "(", "self", ",", "element", ",", "element_type", ")", ":", "elementClause", "=", "None", "if", "isinstance", "(", "element", ",", "collections", ".", "Iterable", ")", ":", "elements", "=", "[", "]", "for", "_id", "in", "element", ":...
Formats a set of identifiers for query
[ "Formats", "a", "set", "of", "identifiers", "for", "query" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L239-L250
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._formatEvidence
def _formatEvidence(self, elements): """ Formats elements passed into parts of a query for filtering """ elementClause = None filters = [] for evidence in elements: if evidence.description: elementClause = 'regex(?{}, "{}")'.format( ...
python
def _formatEvidence(self, elements): """ Formats elements passed into parts of a query for filtering """ elementClause = None filters = [] for evidence in elements: if evidence.description: elementClause = 'regex(?{}, "{}")'.format( ...
[ "def", "_formatEvidence", "(", "self", ",", "elements", ")", ":", "elementClause", "=", "None", "filters", "=", "[", "]", "for", "evidence", "in", "elements", ":", "if", "evidence", ".", "description", ":", "elementClause", "=", "'regex(?{}, \"{}\")'", ".", ...
Formats elements passed into parts of a query for filtering
[ "Formats", "elements", "passed", "into", "parts", "of", "a", "query", "for", "filtering" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L252-L273
ga4gh/ga4gh-server
ga4gh/server/datamodel/genotype_phenotype.py
G2PUtility._getIdentifier
def _getIdentifier(self, url): """ Given a url identifier return identifier portion Leverages prefixes already in graph namespace Returns None if no match Ex. "http://www.drugbank.ca/drugs/DB01268" -> "DB01268" """ for prefix, namespace in self._rdfGraph.namespac...
python
def _getIdentifier(self, url): """ Given a url identifier return identifier portion Leverages prefixes already in graph namespace Returns None if no match Ex. "http://www.drugbank.ca/drugs/DB01268" -> "DB01268" """ for prefix, namespace in self._rdfGraph.namespac...
[ "def", "_getIdentifier", "(", "self", ",", "url", ")", ":", "for", "prefix", ",", "namespace", "in", "self", ".", "_rdfGraph", ".", "namespaces", "(", ")", ":", "if", "namespace", "in", "url", ":", "return", "url", ".", "replace", "(", "namespace", ","...
Given a url identifier return identifier portion Leverages prefixes already in graph namespace Returns None if no match Ex. "http://www.drugbank.ca/drugs/DB01268" -> "DB01268"
[ "Given", "a", "url", "identifier", "return", "identifier", "portion", "Leverages", "prefixes", "already", "in", "graph", "namespace", "Returns", "None", "if", "no", "match", "Ex", ".", "http", ":", "//", "www", ".", "drugbank", ".", "ca", "/", "drugs", "/"...
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L330-L339
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", ...
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L353-L362
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" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L364-L440
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", "]", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L474-L524
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" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L526-L545
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" ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/genotype_phenotype.py#L587-L615
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L78-L107
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L109-L152
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L154-L161
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L188-L196
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L198-L250
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L252-L291
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L324-L340
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L358-L364
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L372-L385
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", "." ]
train
https://github.com/ga4gh/ga4gh-server/blob/1aa18922ef136db8604f6f098cb1732cba6f2a76/ga4gh/server/datamodel/continuous.py#L401-L420
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/base.py#L118-L139
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" ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/base.py#L1159-L1221
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" ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/mock.py#L88-L93
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L88-L138
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L141-L162
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L165-L180
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/helpers.py#L183-L218
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/validate.py#L150-L167
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", ":" ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L23-L52
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" ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L55-L74
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", "." ]
train
https://github.com/napalm-automation/napalm-base/blob/f8a154e642a6da01ac1024dd52eaf7a7116e6191/napalm_base/utils/string_parsers.py#L77-L122
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", "=", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L83-L276
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L369-L527
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L599-L706
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L1412-L1501
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", "=...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L2033-L2208
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/databasemigrationservice.py#L2274-L2406
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/appstream.py#L74-L181
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"...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/appstream.py#L798-L904
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L640-L773
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L821-L1019
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"...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codedeploy.py#L2252-L2454
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",...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/storagegateway.py#L413-L500
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticloadbalancingv2.py#L414-L523
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", "....
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticloadbalancingv2.py#L1532-L1619
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",...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/gamelift.py#L172-L326
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", "...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ses.py#L1643-L1871
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudwatch.py#L374-L488
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudwatch.py#L571-L778
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", "...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L227-L380
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L382-L554
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2334-L2437
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2439-L2510
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/autoscaling.py#L2842-L2974
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/cloudsearchdomain.py#L86-L343
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",...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L152-L350
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L352-L488
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L585-L727
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L729-L937
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L939-L1121
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3199-L3321
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", "=...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3346-L3429
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",...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3431-L3623
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", ":", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/opsworks.py#L3669-L3827
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", ":", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/codebuild.py#L222-L431
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lexmodelbuildingservice.py#L1461-L1622
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/lexmodelbuildingservice.py#L1679-L2020
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L235-L536
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L702-L1009
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",...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L2486-L2737
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/elasticache.py#L2838-L3020
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/emr.py#L1777-L2324
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/machinelearning.py#L752-L857
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L1125-L1591
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L2186-L2655
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L2657-L3215
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L3217-L3660
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/dynamodb.py#L3728-L4306
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/ecs.py#L76-L313
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/route53domains.py#L570-L926
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", ".", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/route53domains.py#L1016-L1239
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...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4244-L4413
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", ...
train
https://github.com/wavycloud/pyboto3/blob/924957ccf994303713a4eed90b775ff2ab95b2e5/pyboto3/iam.py#L4415-L4592