« blib/lib/Paws/CloudWatchEvents/UpdateArchiveResponse.pm
↑ Summary
blib/lib/Paws/CloudWatchEvents/UpdateConnectionApiKeyAuthRequestParameters.pm »
| 1 | |||
| 2 | package Paws::CloudWatchEvents::UpdateConnection; | ||
| 3 | use Moose; | ||
| 4 | has AuthorizationType => (is => 'ro', isa => 'Str'); | ||
| 5 | has AuthParameters => (is => 'ro', isa => 'Paws::CloudWatchEvents::UpdateConnectionAuthRequestParameters'); | ||
| 6 | has Description => (is => 'ro', isa => 'Str'); | ||
| 7 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateConnection'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::UpdateConnectionResponse'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::CloudWatchEvents::UpdateConnection - Arguments for method UpdateConnection on L<Paws::CloudWatchEvents> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateConnection on the | ||
| 25 | L<Amazon EventBridge|Paws::CloudWatchEvents> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateConnection. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateConnection. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $events = Paws->service('CloudWatchEvents'); | ||
| 33 | my $UpdateConnectionResponse = $events->UpdateConnection( | ||
| 34 | Name => 'MyConnectionName', | ||
| 35 | AuthParameters => { | ||
| 36 | ApiKeyAuthParameters => { | ||
| 37 | ApiKeyName => 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 38 | ApiKeyValue => 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 39 | }, # OPTIONAL | ||
| 40 | BasicAuthParameters => { | ||
| 41 | Password => 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 42 | Username => 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 43 | }, # OPTIONAL | ||
| 44 | InvocationHttpParameters => { | ||
| 45 | BodyParameters => [ | ||
| 46 | { | ||
| 47 | IsValueSecret => 1, # OPTIONAL | ||
| 48 | Key => 'MyString', # OPTIONAL | ||
| 49 | Value => 'MyString', # OPTIONAL | ||
| 50 | }, | ||
| 51 | ... | ||
| 52 | ], # max: 100; OPTIONAL | ||
| 53 | HeaderParameters => [ | ||
| 54 | { | ||
| 55 | IsValueSecret => 1, # OPTIONAL | ||
| 56 | Key => 'MyHeaderKey', # max: 512; OPTIONAL | ||
| 57 | Value => 'MyHeaderValue', # max: 512; OPTIONAL | ||
| 58 | }, | ||
| 59 | ... | ||
| 60 | ], # max: 100; OPTIONAL | ||
| 61 | QueryStringParameters => [ | ||
| 62 | { | ||
| 63 | IsValueSecret => 1, # OPTIONAL | ||
| 64 | Key => 'MyQueryStringKey', # max: 512; OPTIONAL | ||
| 65 | Value => 'MyQueryStringValue', # max: 512; OPTIONAL | ||
| 66 | }, | ||
| 67 | ... | ||
| 68 | ], # max: 100; OPTIONAL | ||
| 69 | }, # OPTIONAL | ||
| 70 | OAuthParameters => { | ||
| 71 | AuthorizationEndpoint => | ||
| 72 | 'MyHttpsEndpoint', # min: 1, max: 2048; OPTIONAL | ||
| 73 | ClientParameters => { | ||
| 74 | ClientID => 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 75 | ClientSecret => | ||
| 76 | 'MyAuthHeaderParameters', # min: 1, max: 512; OPTIONAL | ||
| 77 | }, # OPTIONAL | ||
| 78 | HttpMethod => 'GET', # values: GET, POST, PUT; OPTIONAL | ||
| 79 | OAuthHttpParameters => { | ||
| 80 | BodyParameters => [ | ||
| 81 | { | ||
| 82 | IsValueSecret => 1, # OPTIONAL | ||
| 83 | Key => 'MyString', # OPTIONAL | ||
| 84 | Value => 'MyString', # OPTIONAL | ||
| 85 | }, | ||
| 86 | ... | ||
| 87 | ], # max: 100; OPTIONAL | ||
| 88 | HeaderParameters => [ | ||
| 89 | { | ||
| 90 | IsValueSecret => 1, # OPTIONAL | ||
| 91 | Key => 'MyHeaderKey', # max: 512; OPTIONAL | ||
| 92 | Value => 'MyHeaderValue', # max: 512; OPTIONAL | ||
| 93 | }, | ||
| 94 | ... | ||
| 95 | ], # max: 100; OPTIONAL | ||
| 96 | QueryStringParameters => [ | ||
| 97 | { | ||
| 98 | IsValueSecret => 1, # OPTIONAL | ||
| 99 | Key => 'MyQueryStringKey', # max: 512; OPTIONAL | ||
| 100 | Value => 'MyQueryStringValue', # max: 512; OPTIONAL | ||
| 101 | }, | ||
| 102 | ... | ||
| 103 | ], # max: 100; OPTIONAL | ||
| 104 | }, # OPTIONAL | ||
| 105 | }, # OPTIONAL | ||
| 106 | }, # OPTIONAL | ||
| 107 | AuthorizationType => 'BASIC', # OPTIONAL | ||
| 108 | Description => 'MyConnectionDescription', # OPTIONAL | ||
| 109 | ); | ||
| 110 | |||
| 111 | # Results: | ||
| 112 | my $ConnectionArn = $UpdateConnectionResponse->ConnectionArn; | ||
| 113 | my $ConnectionState = $UpdateConnectionResponse->ConnectionState; | ||
| 114 | my $CreationTime = $UpdateConnectionResponse->CreationTime; | ||
| 115 | my $LastAuthorizedTime = $UpdateConnectionResponse->LastAuthorizedTime; | ||
| 116 | my $LastModifiedTime = $UpdateConnectionResponse->LastModifiedTime; | ||
| 117 | |||
| 118 | # Returns a L<Paws::CloudWatchEvents::UpdateConnectionResponse> object. | ||
| 119 | |||
| 120 | 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. | ||
| 121 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/events/UpdateConnection> | ||
| 122 | |||
| 123 | =head1 ATTRIBUTES | ||
| 124 | |||
| 125 | |||
| 126 | =head2 AuthorizationType => Str | ||
| 127 | |||
| 128 | The type of authorization to use for the connection. | ||
| 129 | |||
| 130 | Valid values are: C<"BASIC">, C<"OAUTH_CLIENT_CREDENTIALS">, C<"API_KEY"> | ||
| 131 | |||
| 132 | =head2 AuthParameters => L<Paws::CloudWatchEvents::UpdateConnectionAuthRequestParameters> | ||
| 133 | |||
| 134 | The authorization parameters to use for the connection. | ||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | =head2 Description => Str | ||
| 139 | |||
| 140 | A description for the connection. | ||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | =head2 B<REQUIRED> Name => Str | ||
| 145 | |||
| 146 | The name of the connection to update. | ||
| 147 | |||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | =head1 SEE ALSO | ||
| 152 | |||
| 153 | This class forms part of L<Paws>, documenting arguments for method UpdateConnection in L<Paws::CloudWatchEvents> | ||
| 154 | |||
| 155 | =head1 BUGS and CONTRIBUTIONS | ||
| 156 | |||
| 157 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 158 | |||
| 159 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 160 | |||
| 161 | =cut | ||
| 162 |