« blib/lib/Paws/SSM/GetCalendarStateResponse.pm
↑ Summary
blib/lib/Paws/SSM/GetCommandInvocationResult.pm »
| 1 | |||
| 2 | package Paws::SSM::GetCommandInvocation; | ||
| 3 | use Moose; | ||
| 4 | has CommandId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has InstanceId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has PluginName => (is => 'ro', isa => 'Str'); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetCommandInvocation'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::GetCommandInvocationResult'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::SSM::GetCommandInvocation - Arguments for method GetCommandInvocation on L<Paws::SSM> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method GetCommandInvocation on the | ||
| 24 | L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class | ||
| 25 | as arguments to method GetCommandInvocation. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetCommandInvocation. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $ssm = Paws->service('SSM'); | ||
| 32 | my $GetCommandInvocationResult = $ssm->GetCommandInvocation( | ||
| 33 | CommandId => 'MyCommandId', | ||
| 34 | InstanceId => 'MyInstanceId', | ||
| 35 | PluginName => 'MyCommandPluginName', # OPTIONAL | ||
| 36 | ); | ||
| 37 | |||
| 38 | # Results: | ||
| 39 | my $CloudWatchOutputConfig = | ||
| 40 | $GetCommandInvocationResult->CloudWatchOutputConfig; | ||
| 41 | my $CommandId = $GetCommandInvocationResult->CommandId; | ||
| 42 | my $Comment = $GetCommandInvocationResult->Comment; | ||
| 43 | my $DocumentName = $GetCommandInvocationResult->DocumentName; | ||
| 44 | my $DocumentVersion = $GetCommandInvocationResult->DocumentVersion; | ||
| 45 | my $ExecutionElapsedTime = | ||
| 46 | $GetCommandInvocationResult->ExecutionElapsedTime; | ||
| 47 | my $ExecutionEndDateTime = | ||
| 48 | $GetCommandInvocationResult->ExecutionEndDateTime; | ||
| 49 | my $ExecutionStartDateTime = | ||
| 50 | $GetCommandInvocationResult->ExecutionStartDateTime; | ||
| 51 | my $InstanceId = $GetCommandInvocationResult->InstanceId; | ||
| 52 | my $PluginName = $GetCommandInvocationResult->PluginName; | ||
| 53 | my $ResponseCode = $GetCommandInvocationResult->ResponseCode; | ||
| 54 | my $StandardErrorContent = | ||
| 55 | $GetCommandInvocationResult->StandardErrorContent; | ||
| 56 | my $StandardErrorUrl = $GetCommandInvocationResult->StandardErrorUrl; | ||
| 57 | my $StandardOutputContent = | ||
| 58 | $GetCommandInvocationResult->StandardOutputContent; | ||
| 59 | my $StandardOutputUrl = $GetCommandInvocationResult->StandardOutputUrl; | ||
| 60 | my $Status = $GetCommandInvocationResult->Status; | ||
| 61 | my $StatusDetails = $GetCommandInvocationResult->StatusDetails; | ||
| 62 | |||
| 63 | # Returns a L<Paws::SSM::GetCommandInvocationResult> object. | ||
| 64 | |||
| 65 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 66 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/GetCommandInvocation> | ||
| 67 | |||
| 68 | =head1 ATTRIBUTES | ||
| 69 | |||
| 70 | |||
| 71 | =head2 B<REQUIRED> CommandId => Str | ||
| 72 | |||
| 73 | (Required) The parent command ID of the invocation plugin. | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head2 B<REQUIRED> InstanceId => Str | ||
| 78 | |||
| 79 | (Required) The ID of the managed instance targeted by the command. A | ||
| 80 | managed instance can be an Amazon Elastic Compute Cloud (Amazon EC2) | ||
| 81 | instance or an instance in your hybrid environment that is configured | ||
| 82 | for AWS Systems Manager. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head2 PluginName => Str | ||
| 87 | |||
| 88 | The name of the plugin for which you want detailed results. If the | ||
| 89 | document contains only one plugin, you can omit the name and details | ||
| 90 | for that plugin. If the document contains more than one plugin, you | ||
| 91 | must specify the name of the plugin for which you want to view details. | ||
| 92 | |||
| 93 | Plugin names are also referred to as I<step names> in Systems Manager | ||
| 94 | documents. For example, C<aws:RunShellScript> is a plugin. | ||
| 95 | |||
| 96 | To find the C<PluginName>, check the document content and find the name | ||
| 97 | of the plugin. Alternatively, use ListCommandInvocations with the | ||
| 98 | C<CommandId> and C<Details> parameters. The C<PluginName> is the | ||
| 99 | C<Name> attribute of the C<CommandPlugin> object in the | ||
| 100 | C<CommandPlugins> list. | ||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head1 SEE ALSO | ||
| 106 | |||
| 107 | This class forms part of L<Paws>, documenting arguments for method GetCommandInvocation in L<Paws::SSM> | ||
| 108 | |||
| 109 | =head1 BUGS and CONTRIBUTIONS | ||
| 110 | |||
| 111 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 112 | |||
| 113 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 114 | |||
| 115 | =cut | ||
| 116 |