class ServiceNode:
create_resource_node(**kwargs)
Creates the ResourceNode object with the given kwargs
.
Uses the ResourceNodeRegistry
to find the custom subclasses of the
ResourceNode
class, else defaults to use the ResourceNode class
Raises:
Type | Description |
---|---|
Exception
|
description |
Returns:
Name | Type | Description |
---|---|---|
ResourceNode |
ResourceNode
|
description |
find_resource_node_by_operation_name(operation_name)
Traverses the ResourceNodes of the current ServiceNode and tries to find
the ResourceNode that has the operation_name
in it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
operation_name |
str
|
Name of the operation |
required |
Returns:
Name | Type | Description |
---|---|---|
ResourceNode |
ResourceNode
|
ResourceNode object that has the |
get_event_system()
Returns the boto3 clients event system
get_operation_names()
Returns the operation_names
defined in the boto client._service_model
get_read_operation_name_to_tokens_map()
Generate operation name to word tokens
map for the
available read operations in the ServiceNode.
Caches the output in the class attr. _read_operation_name_to_tokens_map
.
Returns:
Name | Type | Description |
---|---|---|
Dict |
Dict
|
dictionary |
get_read_operation_names()
Gets the operation names from the boto3 client and
filters the operation names starting with List
,Get
or Describe
.
Returns:
Type | Description |
---|---|
List[str]
|
List[str]: Read Only operation names |
get_relation_map()
Gets the relation map object.
Returns:
Name | Type | Description |
---|---|---|
RelationMap |
RelationMap
|
RelationMap object for the current ServiceNode |
get_resource_node_by_name(resource_node_name)
Searches the current ServiceNode for the given resource_node_name
,
and returns it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resource_node_name |
str
|
Name of the ResourceNode |
required |
Returns:
Name | Type | Description |
---|---|---|
ResourceNode |
ResourceNode
|
The ResourceNode object, |
get_resource_nodes()
Gets the available ResourceNode
s of the current ServiceNode
Returns:
Type | Description |
---|---|
List[ResourceNode]
|
List[ResourceNode]: List of |
get_service_model()
Returns the ServiceModel obj from boto3 client
get_service_reader()
Returns/creates the ServiceReader for the current ServiceNode
Returns:
Name | Type | Description |
---|---|---|
ServiceReader |
ServiceReader
|
ServiceReader object for current ServiceNode |