Skip to content

Commit 99c0e64

Browse files
Update API model
1 parent 40c8a97 commit 99c0e64

File tree

8 files changed

+1222
-29
lines changed

8 files changed

+1222
-29
lines changed

codegen/sdk-codegen/aws-models/amp.json

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@
17181718
}
17191719
],
17201720
"traits": {
1721-
"smithy.api#documentation": "<p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <p>Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>",
1721+
"smithy.api#documentation": "<p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <important> <p>The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.</p> </important> <p>Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>",
17221722
"smithy.api#http": {
17231723
"code": 202,
17241724
"method": "POST",
@@ -1837,7 +1837,7 @@
18371837
}
18381838
],
18391839
"traits": {
1840-
"smithy.api#documentation": "<p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more.</p> <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see <a href=\"https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup\">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML configuration for the scraper.</p> <p>When creating a scraper, the service creates a <code>Network Interface</code> in each <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through subnets. These network interfaces are used to connect to the Amazon EKS cluster within the VPC for scraping metrics.</p> <note> <p>For more information about collectors, including what metrics are collected, and how to configure the scraper, see <a href=\"https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html\">Using an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> </note>",
1840+
"smithy.api#documentation": "<p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources and sends them to your Amazon Managed Service for Prometheus workspace. You can configure scrapers to collect metrics from Amazon EKS clusters, Amazon MSK clusters, or from VPC-based sources that support DNS-based service discovery. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more.</p> <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your source. You must configure this role with a policy that allows it to scrape metrics from your source. For Amazon EKS sources, see <a href=\"https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup\">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML configuration for the scraper.</p> <p>When creating a scraper, the service creates a <code>Network Interface</code> in each <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through subnets. These network interfaces are used to connect to your source within the VPC for scraping metrics.</p> <note> <p>For more information about collectors, including what metrics are collected, and how to configure the scraper, see <a href=\"https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html\">Using an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> </note>",
18411841
"smithy.api#examples": [
18421842
{
18431843
"title": "CreateScraper with optional alias input, optional clientToken input, and one set of tags",
@@ -1877,6 +1877,44 @@
18771877
"exampleTag": "exampleValue"
18781878
}
18791879
}
1880+
},
1881+
{
1882+
"title": "CreateScraper with generic VPC config with mandatory securityGroupIds and subnetIds",
1883+
"input": {
1884+
"alias": "alias",
1885+
"scrapeConfiguration": {
1886+
"configurationBlob": "blob"
1887+
},
1888+
"source": {
1889+
"vpcConfiguration": {
1890+
"securityGroupIds": [
1891+
"sg-abc123"
1892+
],
1893+
"subnetIds": [
1894+
"subnet-abc123"
1895+
]
1896+
}
1897+
},
1898+
"destination": {
1899+
"ampConfiguration": {
1900+
"workspaceArn": "arn:aws:aps:us-west-2:123456789012:workspace/ws-ogh2u499-ce12-hg89-v6c7-123412341234"
1901+
}
1902+
},
1903+
"clientToken": "token",
1904+
"tags": {
1905+
"exampleTag": "exampleValue"
1906+
}
1907+
},
1908+
"output": {
1909+
"scraperId": "scraper-123",
1910+
"arn": "arn:aws:aps:us-west-2:123456789012:scraper/scraper-123",
1911+
"status": {
1912+
"statusCode": "CREATING"
1913+
},
1914+
"tags": {
1915+
"exampleTag": "exampleValue"
1916+
}
1917+
}
18801918
}
18811919
],
18821920
"smithy.api#http": {
@@ -1906,7 +1944,7 @@
19061944
"source": {
19071945
"target": "com.amazonaws.amp#Source",
19081946
"traits": {
1909-
"smithy.api#documentation": "<p>The Amazon EKS cluster from which the scraper will collect metrics.</p>",
1947+
"smithy.api#documentation": "<p>The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.</p>",
19101948
"smithy.api#required": {}
19111949
}
19121950
},
@@ -5057,7 +5095,7 @@
50575095
}
50585096
],
50595097
"traits": {
5060-
"smithy.api#documentation": "<p>Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <p>Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use <code>CreateRuleGroupsNamespace</code>.</p> <p>You can't use this operation to add tags to an existing rule groups namespace. Instead, use <code>TagResource</code>.</p>",
5098+
"smithy.api#documentation": "<p>Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <important> <p>The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.</p> </important> <p>Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use <code>CreateRuleGroupsNamespace</code>.</p> <p>You can't use this operation to add tags to an existing rule groups namespace. Instead, use <code>TagResource</code>.</p>",
50615099
"smithy.api#http": {
50625100
"code": 202,
50635101
"method": "PUT",
@@ -6199,6 +6237,12 @@
61996237
"traits": {
62006238
"smithy.api#documentation": "<p>The Amazon EKS cluster from which a scraper collects metrics.</p>"
62016239
}
6240+
},
6241+
"vpcConfiguration": {
6242+
"target": "com.amazonaws.amp#VpcConfiguration",
6243+
"traits": {
6244+
"smithy.api#documentation": "<p>The Amazon VPC configuration for the Prometheus collector when connecting to Amazon MSK clusters. This configuration enables secure, private network connectivity between the collector and your Amazon MSK cluster within your Amazon VPC.</p>"
6245+
}
62026246
}
62036247
},
62046248
"traits": {
@@ -7096,6 +7140,28 @@
70967140
]
70977141
}
70987142
},
7143+
"com.amazonaws.amp#VpcConfiguration": {
7144+
"type": "structure",
7145+
"members": {
7146+
"securityGroupIds": {
7147+
"target": "com.amazonaws.amp#SecurityGroupIds",
7148+
"traits": {
7149+
"smithy.api#documentation": "<p>The security group IDs that control network access for the Prometheus collector. These security groups must allow the collector to communicate with your Amazon MSK cluster on the required ports.</p>",
7150+
"smithy.api#required": {}
7151+
}
7152+
},
7153+
"subnetIds": {
7154+
"target": "com.amazonaws.amp#SubnetIds",
7155+
"traits": {
7156+
"smithy.api#documentation": "<p>The subnet IDs where the Prometheus collector will be deployed. The subnets must be in the same Amazon VPC as your Amazon MSK cluster and have network connectivity to the cluster.</p>",
7157+
"smithy.api#required": {}
7158+
}
7159+
}
7160+
},
7161+
"traits": {
7162+
"smithy.api#documentation": "<p>The Amazon VPC configuration that specifies the network settings for a Prometheus collector to securely connect to Amazon MSK clusters. This configuration includes the security groups and subnets that control network access and placement for the collector.</p>"
7163+
}
7164+
},
70997165
"com.amazonaws.amp#Workspace": {
71007166
"type": "resource",
71017167
"identifiers": {

codegen/sdk-codegen/aws-models/connect.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4706,6 +4706,10 @@
47064706
"PeriodicSessionDuration": {
47074707
"target": "com.amazonaws.connect#AccessTokenDuration",
47084708
"traits": {
4709+
"smithy.api#deprecated": {
4710+
"since": "10/31/2025",
4711+
"message": "PeriodicSessionDuration is deprecated. Use SessionInactivityDuration instead."
4712+
},
47094713
"smithy.api#documentation": "<p>The short lived session duration configuration for users logged in to Amazon Connect, in\n minutes. This value determines the maximum possible time before an agent is authenticated. For\n more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/authentication-profiles.html#configure-session-timeouts\">Configure the session duration</a> in the <i>Amazon Connect Administrator\n Guide</i>.</p>"
47104714
}
47114715
},
@@ -4714,6 +4718,19 @@
47144718
"traits": {
47154719
"smithy.api#documentation": "<p>The long lived session duration for users logged in to Amazon Connect, in minutes. After\n this time period, users must log in again. For more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/authentication-profiles.html#configure-session-timeouts\">Configure the session duration</a> in the <i>Amazon Connect Administrator\n Guide</i>.</p>"
47164720
}
4721+
},
4722+
"SessionInactivityDuration": {
4723+
"target": "com.amazonaws.connect#InactivityDuration",
4724+
"traits": {
4725+
"smithy.api#documentation": "<p>The period, in minutes, before an agent is automatically signed out of the contact center when they go inactive.</p>"
4726+
}
4727+
},
4728+
"SessionInactivityHandlingEnabled": {
4729+
"target": "com.amazonaws.connect#Boolean",
4730+
"traits": {
4731+
"smithy.api#default": null,
4732+
"smithy.api#documentation": "<p>Determines if automatic logout on user inactivity is enabled.</p>"
4733+
}
47174734
}
47184735
},
47194736
"traits": {
@@ -23408,6 +23425,15 @@
2340823425
"smithy.api#output": {}
2340923426
}
2341023427
},
23428+
"com.amazonaws.connect#InactivityDuration": {
23429+
"type": "integer",
23430+
"traits": {
23431+
"smithy.api#range": {
23432+
"min": 15,
23433+
"max": 720
23434+
}
23435+
}
23436+
},
2341123437
"com.amazonaws.connect#InboundAdditionalRecipients": {
2341223438
"type": "structure",
2341323439
"members": {
@@ -44465,8 +44491,25 @@
4446544491
"PeriodicSessionDuration": {
4446644492
"target": "com.amazonaws.connect#AccessTokenDuration",
4446744493
"traits": {
44494+
"smithy.api#deprecated": {
44495+
"since": "10/31/2025",
44496+
"message": "PeriodicSessionDuration is deprecated. Use SessionInactivityDuration instead."
44497+
},
4446844498
"smithy.api#documentation": "<p>The short lived session duration configuration for users logged in to Amazon Connect, in\n minutes. This value determines the maximum possible time before an agent is authenticated. For\n more information, For more information on how to configure IP addresses, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/authentication-profiles.html#configure-session-timeouts\">Configure session timeouts</a> in the <i>Amazon Connect Administrator\n Guide</i>. </p>"
4446944499
}
44500+
},
44501+
"SessionInactivityDuration": {
44502+
"target": "com.amazonaws.connect#InactivityDuration",
44503+
"traits": {
44504+
"smithy.api#documentation": "<p>The period, in minutes, before an agent is automatically signed out of the contact center when they go inactive.</p>"
44505+
}
44506+
},
44507+
"SessionInactivityHandlingEnabled": {
44508+
"target": "com.amazonaws.connect#Boolean",
44509+
"traits": {
44510+
"smithy.api#default": null,
44511+
"smithy.api#documentation": "<p>Determines if automatic logout on user inactivity is enabled.</p>"
44512+
}
4447044513
}
4447144514
},
4447244515
"traits": {

0 commit comments

Comments
 (0)