MCPcopy
hub / github.com/aws/aws-cli / ServiceHelpCommand

Class ServiceHelpCommand

awscli/help.py:518–545  ·  view source on GitHub ↗

Implements service level help. This is the object invoked whenever a service command help is implemented, e.g. ``aws ec2 help``.

Source from the content-addressed store, hash-verified

516
517
518class ServiceHelpCommand(HelpCommand):
519 """Implements service level help.
520
521 This is the object invoked whenever a service command
522 help is implemented, e.g. ``aws ec2 help``.
523
524 """
525
526 EventHandlerClass = ServiceDocumentEventHandler
527
528 def __init__(
529 self, session, obj, command_table, arg_table, name, event_class
530 ):
531 super().__init__(session, obj, command_table, arg_table)
532 self._name = name
533 self._event_class = event_class
534
535 @property
536 def event_class(self):
537 return self._event_class
538
539 @property
540 def name(self):
541 return self._name
542
543 @property
544 def url(self):
545 return f"{self._base_remote_url}/{REF_PATH}/{self.name}/index.html"
546
547
548class OperationHelpCommand(HelpCommand):

Calls

no outgoing calls