« blib/lib/Paws/LexModelsV2/DeleteResourcePolicyResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/DeleteResourcePolicyStatementResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::DeleteResourcePolicyStatement; | ||
| 3 | use Moose; | ||
| 4 | has ExpectedRevisionId => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'expectedRevisionId'); | ||
| 5 | has ResourceArn => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'resourceArn', required => 1); | ||
| 6 | has StatementId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'statementId', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteResourcePolicyStatement'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/policy/{resourceArn}/statements/{statementId}/'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::DeleteResourcePolicyStatementResponse'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::LexModelsV2::DeleteResourcePolicyStatement - Arguments for method DeleteResourcePolicyStatement on L<Paws::LexModelsV2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method DeleteResourcePolicyStatement on the | ||
| 25 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 26 | as arguments to method DeleteResourcePolicyStatement. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteResourcePolicyStatement. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 33 | my $DeleteResourcePolicyStatementResponse = | ||
| 34 | $models - v2 -lex->DeleteResourcePolicyStatement( | ||
| 35 | ResourceArn => 'MyAmazonResourceName', | ||
| 36 | StatementId => 'MyName', | ||
| 37 | ExpectedRevisionId => 'MyRevisionId', # OPTIONAL | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $ResourceArn = $DeleteResourcePolicyStatementResponse->ResourceArn; | ||
| 42 | my $RevisionId = $DeleteResourcePolicyStatementResponse->RevisionId; | ||
| 43 | |||
| 44 | # Returns a L<Paws::LexModelsV2::DeleteResourcePolicyStatementResponse> object. | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/DeleteResourcePolicyStatement> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 ExpectedRevisionId => Str | ||
| 53 | |||
| 54 | The identifier of the revision of the policy to delete the statement | ||
| 55 | from. If this revision ID doesn't match the current revision ID, Amazon | ||
| 56 | Lex throws an exception. | ||
| 57 | |||
| 58 | If you don't specify a revision, Amazon Lex removes the current | ||
| 59 | contents of the statement. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> ResourceArn => Str | ||
| 64 | |||
| 65 | The Amazon Resource Name (ARN) of the bot or bot alias that the | ||
| 66 | resource policy is attached to. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 B<REQUIRED> StatementId => Str | ||
| 71 | |||
| 72 | The name of the statement (SID) to delete from the policy. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head1 SEE ALSO | ||
| 78 | |||
| 79 | This class forms part of L<Paws>, documenting arguments for method DeleteResourcePolicyStatement in L<Paws::LexModelsV2> | ||
| 80 | |||
| 81 | =head1 BUGS and CONTRIBUTIONS | ||
| 82 | |||
| 83 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 84 | |||
| 85 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 86 | |||
| 87 | =cut | ||
| 88 |