|
1402 | 1402 | "smithy.api#required": {} |
1403 | 1403 | } |
1404 | 1404 | }, |
| 1405 | + "roleConfiguration": { |
| 1406 | + "target": "com.amazonaws.amp#RoleConfiguration", |
| 1407 | + "traits": { |
| 1408 | + "smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>" |
| 1409 | + } |
| 1410 | + }, |
1405 | 1411 | "clientToken": { |
1406 | 1412 | "target": "com.amazonaws.amp#IdempotencyToken", |
1407 | 1413 | "traits": { |
|
2552 | 2558 | "aws.api#arnReference": { |
2553 | 2559 | "type": "AWS::IAM::Role" |
2554 | 2560 | }, |
2555 | | - "smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>" |
| 2561 | + "smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>", |
| 2562 | + "smithy.api#pattern": "^arn:aws[-a-z]*:iam::[0-9]{12}:role/.+$" |
2556 | 2563 | } |
2557 | 2564 | }, |
2558 | 2565 | "com.amazonaws.amp#IdempotencyToken": { |
|
2602 | 2609 | "min": 20, |
2603 | 2610 | "max": 2048 |
2604 | 2611 | }, |
2605 | | - "smithy.api#pattern": "^arn:aws:kms:[a-z0-9\\-]+:\\d+:key/[a-f0-9\\-]+$" |
| 2612 | + "smithy.api#pattern": "^arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/[-a-f0-9]+$" |
2606 | 2613 | } |
2607 | 2614 | }, |
2608 | 2615 | "com.amazonaws.amp#ListRuleGroupsNamespaces": { |
|
3081 | 3088 | "aws.api#arnReference": { |
3082 | 3089 | "type": "AWS::Logs::LogGroup" |
3083 | 3090 | }, |
3084 | | - "smithy.api#pattern": "^arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\\d{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$" |
| 3091 | + "smithy.api#pattern": "^arn:aws[-a-z]*:logs:[-a-z0-9]+:[0-9]{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$" |
3085 | 3092 | } |
3086 | 3093 | }, |
3087 | 3094 | "com.amazonaws.amp#LoggingConfiguration": { |
|
3452 | 3459 | "smithy.api#httpError": 404 |
3453 | 3460 | } |
3454 | 3461 | }, |
| 3462 | + "com.amazonaws.amp#RoleConfiguration": { |
| 3463 | + "type": "structure", |
| 3464 | + "members": { |
| 3465 | + "sourceRoleArn": { |
| 3466 | + "target": "com.amazonaws.amp#IamRoleArn", |
| 3467 | + "traits": { |
| 3468 | + "smithy.api#documentation": "<p>A ARN identifying the source role configuration.</p>" |
| 3469 | + } |
| 3470 | + }, |
| 3471 | + "targetRoleArn": { |
| 3472 | + "target": "com.amazonaws.amp#IamRoleArn", |
| 3473 | + "traits": { |
| 3474 | + "smithy.api#documentation": "<p>A ARN identifying the target role configuration.</p>" |
| 3475 | + } |
| 3476 | + } |
| 3477 | + }, |
| 3478 | + "traits": { |
| 3479 | + "smithy.api#documentation": "<p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>" |
| 3480 | + } |
| 3481 | + }, |
3455 | 3482 | "com.amazonaws.amp#RuleGroupsNamespace": { |
3456 | 3483 | "type": "resource", |
3457 | 3484 | "identifiers": { |
|
3833 | 3860 | "smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>", |
3834 | 3861 | "smithy.api#required": {} |
3835 | 3862 | } |
| 3863 | + }, |
| 3864 | + "roleConfiguration": { |
| 3865 | + "target": "com.amazonaws.amp#RoleConfiguration" |
3836 | 3866 | } |
3837 | 3867 | }, |
3838 | 3868 | "traits": { |
|
4011 | 4041 | "smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>", |
4012 | 4042 | "smithy.api#required": {} |
4013 | 4043 | } |
| 4044 | + }, |
| 4045 | + "roleConfiguration": { |
| 4046 | + "target": "com.amazonaws.amp#RoleConfiguration" |
4014 | 4047 | } |
4015 | 4048 | }, |
4016 | 4049 | "traits": { |
|
4526 | 4559 | "smithy.api#documentation": "<p>The new Amazon Managed Service for Prometheus workspace to send metrics to.</p>" |
4527 | 4560 | } |
4528 | 4561 | }, |
| 4562 | + "roleConfiguration": { |
| 4563 | + "target": "com.amazonaws.amp#RoleConfiguration", |
| 4564 | + "traits": { |
| 4565 | + "smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>" |
| 4566 | + } |
| 4567 | + }, |
4529 | 4568 | "clientToken": { |
4530 | 4569 | "target": "com.amazonaws.amp#IdempotencyToken", |
4531 | 4570 | "traits": { |
|
0 commit comments