« blib/lib/Paws/AuditManager/CreateAssessmentResponse.pm
↑ Summary
blib/lib/Paws/AuditManager/CreateControlMappingSource.pm »
| 1 | |||
| 2 | package Paws::AuditManager::CreateControl; | ||
| 3 | use Moose; | ||
| 4 | has ActionPlanInstructions => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'actionPlanInstructions'); | ||
| 5 | has ActionPlanTitle => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'actionPlanTitle'); | ||
| 6 | has ControlMappingSources => (is => 'ro', isa => 'ArrayRef[Paws::AuditManager::CreateControlMappingSource]', traits => ['NameInRequest'], request_name => 'controlMappingSources', required => 1); | ||
| 7 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 8 | has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1); | ||
| 9 | has Tags => (is => 'ro', isa => 'Paws::AuditManager::TagMap', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 10 | has TestingInformation => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'testingInformation'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateControl'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/controls'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AuditManager::CreateControlResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::AuditManager::CreateControl - Arguments for method CreateControl on L<Paws::AuditManager> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateControl on the | ||
| 29 | L<AWS Audit Manager|Paws::AuditManager> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateControl. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateControl. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $auditmanager = Paws->service('AuditManager'); | ||
| 37 | my $CreateControlResponse = $auditmanager->CreateControl( | ||
| 38 | ControlMappingSources => [ | ||
| 39 | { | ||
| 40 | SourceDescription => 'MySourceDescription', # max: 1000; OPTIONAL | ||
| 41 | SourceFrequency => 'DAILY', # values: DAILY, WEEKLY, MONTHLY; OPTIONAL | ||
| 42 | SourceKeyword => { | ||
| 43 | KeywordInputType => | ||
| 44 | 'SELECT_FROM_LIST', # values: SELECT_FROM_LIST; OPTIONAL | ||
| 45 | KeywordValue => 'MyKeywordValue', # min: 1, max: 100; OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | SourceName => 'MySourceName', # min: 1, max: 100; OPTIONAL | ||
| 48 | SourceSetUpOption => 'System_Controls_Mapping' | ||
| 49 | , # values: System_Controls_Mapping, Procedural_Controls_Mapping; OPTIONAL | ||
| 50 | SourceType => 'AWS_Cloudtrail' | ||
| 51 | , # values: AWS_Cloudtrail, AWS_Config, AWS_Security_Hub, AWS_API_Call, MANUAL; OPTIONAL | ||
| 52 | TroubleshootingText => 'MyTroubleshootingText', # max: 1000; OPTIONAL | ||
| 53 | }, | ||
| 54 | ... | ||
| 55 | ], | ||
| 56 | Name => 'MyControlName', | ||
| 57 | ActionPlanInstructions => 'MyActionPlanInstructions', # OPTIONAL | ||
| 58 | ActionPlanTitle => 'MyActionPlanTitle', # OPTIONAL | ||
| 59 | Description => 'MyControlDescription', # OPTIONAL | ||
| 60 | Tags => { | ||
| 61 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 62 | }, # OPTIONAL | ||
| 63 | TestingInformation => 'MyTestingInformation', # OPTIONAL | ||
| 64 | ); | ||
| 65 | |||
| 66 | # Results: | ||
| 67 | my $Control = $CreateControlResponse->Control; | ||
| 68 | |||
| 69 | # Returns a L<Paws::AuditManager::CreateControlResponse> object. | ||
| 70 | |||
| 71 | 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. | ||
| 72 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/auditmanager/CreateControl> | ||
| 73 | |||
| 74 | =head1 ATTRIBUTES | ||
| 75 | |||
| 76 | |||
| 77 | =head2 ActionPlanInstructions => Str | ||
| 78 | |||
| 79 | The recommended actions to carry out if the control is not fulfilled. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 ActionPlanTitle => Str | ||
| 84 | |||
| 85 | The title of the action plan for remediating the control. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 B<REQUIRED> ControlMappingSources => ArrayRef[L<Paws::AuditManager::CreateControlMappingSource>] | ||
| 90 | |||
| 91 | The data mapping sources for the specified control. | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head2 Description => Str | ||
| 96 | |||
| 97 | The description of the control. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> Name => Str | ||
| 102 | |||
| 103 | The name of the control. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 Tags => L<Paws::AuditManager::TagMap> | ||
| 108 | |||
| 109 | The tags associated with the control. | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head2 TestingInformation => Str | ||
| 114 | |||
| 115 | The steps to follow to determine if the control has been satisfied. | ||
| 116 | |||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | =head1 SEE ALSO | ||
| 121 | |||
| 122 | This class forms part of L<Paws>, documenting arguments for method CreateControl in L<Paws::AuditManager> | ||
| 123 | |||
| 124 | =head1 BUGS and CONTRIBUTIONS | ||
| 125 | |||
| 126 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 127 | |||
| 128 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 129 | |||
| 130 | =cut | ||
| 131 |