Struct aws_sdk_devopsguru::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for Amazon DevOps Guru
Client for invoking operations on Amazon DevOps Guru. Each operation on Amazon DevOps Guru is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_devopsguru::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Config
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_devopsguru::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the DeleteInsight
operation has
a Client::delete_insight
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.delete_insight()
.id("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn add_notification_channel(&self) -> AddNotificationChannelFluentBuilder
pub fn add_notification_channel(&self) -> AddNotificationChannelFluentBuilder
Constructs a fluent builder for the AddNotificationChannel
operation.
- The fluent builder is configurable:
config(NotificationChannelConfig)
/set_config(Option<NotificationChannelConfig>)
:
required: trueA
NotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
- On success, responds with
AddNotificationChannelOutput
with field(s):id(String)
:The ID of the added notification channel.
- On failure, responds with
SdkError<AddNotificationChannelError>
source§impl Client
impl Client
sourcepub fn delete_insight(&self) -> DeleteInsightFluentBuilder
pub fn delete_insight(&self) -> DeleteInsightFluentBuilder
Constructs a fluent builder for the DeleteInsight
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the insight.
- On success, responds with
DeleteInsightOutput
- On failure, responds with
SdkError<DeleteInsightError>
source§impl Client
impl Client
sourcepub fn describe_account_health(&self) -> DescribeAccountHealthFluentBuilder
pub fn describe_account_health(&self) -> DescribeAccountHealthFluentBuilder
Constructs a fluent builder for the DescribeAccountHealth
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeAccountHealthOutput
with field(s):open_reactive_insights(i32)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account.
open_proactive_insights(i32)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account.
metrics_analyzed(i32)
:An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services account.
resource_hours(i64)
:The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the last hour.
analyzed_resource_count(Option<i64>)
:Number of resources that DevOps Guru is monitoring in your Amazon Web Services account.
- On failure, responds with
SdkError<DescribeAccountHealthError>
source§impl Client
impl Client
sourcepub fn describe_account_overview(&self) -> DescribeAccountOverviewFluentBuilder
pub fn describe_account_overview(&self) -> DescribeAccountOverviewFluentBuilder
Constructs a fluent builder for the DescribeAccountOverview
operation.
- The fluent builder is configurable:
from_time(DateTime)
/set_from_time(Option<DateTime>)
:
required: trueThe start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.
to_time(DateTime)
/set_to_time(Option<DateTime>)
:
required: falseThe end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.
- On success, responds with
DescribeAccountOverviewOutput
with field(s):reactive_insights(i32)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account that were created during the time range passed in.
proactive_insights(i32)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account that were created during the time range passed in.
mean_time_to_recover_in_milliseconds(i64)
:The Mean Time to Recover (MTTR) for all closed insights that were created during the time range passed in.
- On failure, responds with
SdkError<DescribeAccountOverviewError>
source§impl Client
impl Client
sourcepub fn describe_anomaly(&self) -> DescribeAnomalyFluentBuilder
pub fn describe_anomaly(&self) -> DescribeAnomalyFluentBuilder
Constructs a fluent builder for the DescribeAnomaly
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the anomaly.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:
required: falseThe ID of the member account.
- On success, responds with
DescribeAnomalyOutput
with field(s):proactive_anomaly(Option<ProactiveAnomaly>)
:A
ProactiveAnomaly
object that represents the requested anomaly.reactive_anomaly(Option<ReactiveAnomaly>)
:A
ReactiveAnomaly
object that represents the requested anomaly.
- On failure, responds with
SdkError<DescribeAnomalyError>
source§impl Client
impl Client
sourcepub fn describe_event_sources_config(
&self
) -> DescribeEventSourcesConfigFluentBuilder
pub fn describe_event_sources_config( &self ) -> DescribeEventSourcesConfigFluentBuilder
Constructs a fluent builder for the DescribeEventSourcesConfig
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeEventSourcesConfigOutput
with field(s):event_sources(Option<EventSourcesConfig>)
:Lists the event sources in the configuration.
- On failure, responds with
SdkError<DescribeEventSourcesConfigError>
source§impl Client
impl Client
sourcepub fn describe_feedback(&self) -> DescribeFeedbackFluentBuilder
pub fn describe_feedback(&self) -> DescribeFeedbackFluentBuilder
Constructs a fluent builder for the DescribeFeedback
operation.
- The fluent builder is configurable:
insight_id(impl Into<String>)
/set_insight_id(Option<String>)
:
required: falseThe ID of the insight for which the feedback was provided.
- On success, responds with
DescribeFeedbackOutput
with field(s):insight_feedback(Option<InsightFeedback>)
:Information about insight feedback received from a customer.
- On failure, responds with
SdkError<DescribeFeedbackError>
source§impl Client
impl Client
sourcepub fn describe_insight(&self) -> DescribeInsightFluentBuilder
pub fn describe_insight(&self) -> DescribeInsightFluentBuilder
Constructs a fluent builder for the DescribeInsight
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the insight.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:
required: falseThe ID of the member account in the organization.
- On success, responds with
DescribeInsightOutput
with field(s):proactive_insight(Option<ProactiveInsight>)
:A
ProactiveInsight
object that represents the requested insight.reactive_insight(Option<ReactiveInsight>)
:A
ReactiveInsight
object that represents the requested insight.
- On failure, responds with
SdkError<DescribeInsightError>
source§impl Client
impl Client
sourcepub fn describe_organization_health(
&self
) -> DescribeOrganizationHealthFluentBuilder
pub fn describe_organization_health( &self ) -> DescribeOrganizationHealthFluentBuilder
Constructs a fluent builder for the DescribeOrganizationHealth
operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)
/set_account_ids(Option<Vec::<String>>)
:
required: falseThe ID of the Amazon Web Services account.
organizational_unit_ids(impl Into<String>)
/set_organizational_unit_ids(Option<Vec::<String>>)
:
required: falseThe ID of the organizational unit.
- On success, responds with
DescribeOrganizationHealthOutput
with field(s):open_reactive_insights(i32)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account.
open_proactive_insights(i32)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account.
metrics_analyzed(i32)
:An integer that specifies the number of metrics that have been analyzed in your organization.
resource_hours(i64)
:The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the last hour.
- On failure, responds with
SdkError<DescribeOrganizationHealthError>
source§impl Client
impl Client
sourcepub fn describe_organization_overview(
&self
) -> DescribeOrganizationOverviewFluentBuilder
pub fn describe_organization_overview( &self ) -> DescribeOrganizationOverviewFluentBuilder
Constructs a fluent builder for the DescribeOrganizationOverview
operation.
- The fluent builder is configurable:
from_time(DateTime)
/set_from_time(Option<DateTime>)
:
required: trueThe start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.
to_time(DateTime)
/set_to_time(Option<DateTime>)
:
required: falseThe end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.
account_ids(impl Into<String>)
/set_account_ids(Option<Vec::<String>>)
:
required: falseThe ID of the Amazon Web Services account.
organizational_unit_ids(impl Into<String>)
/set_organizational_unit_ids(Option<Vec::<String>>)
:
required: falseThe ID of the organizational unit.
- On success, responds with
DescribeOrganizationOverviewOutput
with field(s):reactive_insights(i32)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account.
proactive_insights(i32)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account.
- On failure, responds with
SdkError<DescribeOrganizationOverviewError>
source§impl Client
impl Client
sourcepub fn describe_organization_resource_collection_health(
&self
) -> DescribeOrganizationResourceCollectionHealthFluentBuilder
pub fn describe_organization_resource_collection_health( &self ) -> DescribeOrganizationResourceCollectionHealthFluentBuilder
Constructs a fluent builder for the DescribeOrganizationResourceCollectionHealth
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
organization_resource_collection_type(OrganizationResourceCollectionType)
/set_organization_resource_collection_type(Option<OrganizationResourceCollectionType>)
:
required: trueAn Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources are defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
account_ids(impl Into<String>)
/set_account_ids(Option<Vec::<String>>)
:
required: falseThe ID of the Amazon Web Services account.
organizational_unit_ids(impl Into<String>)
/set_organizational_unit_ids(Option<Vec::<String>>)
:
required: falseThe ID of the organizational unit.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.
- On success, responds with
DescribeOrganizationResourceCollectionHealthOutput
with field(s):cloud_formation(Option<Vec::<CloudFormationHealth>>)
:The returned
CloudFormationHealthOverview
object that contains anInsightHealthOverview
object with the requested system health information.service(Option<Vec::<ServiceHealth>>)
:An array of
ServiceHealth
objects that describes the health of the Amazon Web Services services associated with the resources in the collection.account(Option<Vec::<AccountHealth>>)
:The name of the organization’s account.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
tags(Option<Vec::<TagHealth>>)
:Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an Lambda function. For more information about using tags, see the Tagging best practices whitepaper.
Each Amazon Web Services tag has two parts.
-
A tag key (for example,
CostCenter
,Environment
,Project
, orSecret
). Tag keys are case-sensitive. -
An optional field known as a tag value (for example,
111122223333
,Production
, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case-sensitive.
Together these are known as key-value pairs.
The string used for a key in a tag that you use to define your resource coverage must begin with the prefix
Devops-guru-
. The tag key might beDevOps-Guru-deployment-application
ordevops-guru-rds-application
. When you create a key, the case of characters in the key can be whatever you choose. After you create a key, it is case-sensitive. For example, DevOps Guru works with a key nameddevops-guru-rds
and a key namedDevOps-Guru-RDS
, and these act as two different keys. Possible key/value pairs in your application might beDevops-Guru-production-application/RDS
orDevops-Guru-production-application/containers
.-
- On failure, responds with
SdkError<DescribeOrganizationResourceCollectionHealthError>
source§impl Client
impl Client
sourcepub fn describe_resource_collection_health(
&self
) -> DescribeResourceCollectionHealthFluentBuilder
pub fn describe_resource_collection_health( &self ) -> DescribeResourceCollectionHealthFluentBuilder
Constructs a fluent builder for the DescribeResourceCollectionHealth
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_collection_type(ResourceCollectionType)
/set_resource_collection_type(Option<ResourceCollectionType>)
:
required: trueAn Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources are defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
DescribeResourceCollectionHealthOutput
with field(s):cloud_formation(Option<Vec::<CloudFormationHealth>>)
:The returned
CloudFormationHealthOverview
object that contains anInsightHealthOverview
object with the requested system health information.service(Option<Vec::<ServiceHealth>>)
:An array of
ServiceHealth
objects that describes the health of the Amazon Web Services services associated with the resources in the collection.next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
tags(Option<Vec::<TagHealth>>)
:The Amazon Web Services tags that are used by resources in the resource collection.
Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an Lambda function. For more information about using tags, see the Tagging best practices whitepaper.
Each Amazon Web Services tag has two parts.
-
A tag key (for example,
CostCenter
,Environment
,Project
, orSecret
). Tag keys are case-sensitive. -
An optional field known as a tag value (for example,
111122223333
,Production
, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case-sensitive.
Together these are known as key-value pairs.
The string used for a key in a tag that you use to define your resource coverage must begin with the prefix
Devops-guru-
. The tag key might beDevOps-Guru-deployment-application
ordevops-guru-rds-application
. When you create a key, the case of characters in the key can be whatever you choose. After you create a key, it is case-sensitive. For example, DevOps Guru works with a key nameddevops-guru-rds
and a key namedDevOps-Guru-RDS
, and these act as two different keys. Possible key/value pairs in your application might beDevops-Guru-production-application/RDS
orDevops-Guru-production-application/containers
.-
- On failure, responds with
SdkError<DescribeResourceCollectionHealthError>
source§impl Client
impl Client
sourcepub fn describe_service_integration(
&self
) -> DescribeServiceIntegrationFluentBuilder
pub fn describe_service_integration( &self ) -> DescribeServiceIntegrationFluentBuilder
Constructs a fluent builder for the DescribeServiceIntegration
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeServiceIntegrationOutput
with field(s):service_integration(Option<ServiceIntegrationConfig>)
:Information about the integration of DevOps Guru with another Amazon Web Services service, such as Amazon Web Services Systems Manager.
- On failure, responds with
SdkError<DescribeServiceIntegrationError>
source§impl Client
impl Client
sourcepub fn get_cost_estimation(&self) -> GetCostEstimationFluentBuilder
pub fn get_cost_estimation(&self) -> GetCostEstimationFluentBuilder
Constructs a fluent builder for the GetCostEstimation
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
GetCostEstimationOutput
with field(s):resource_collection(Option<CostEstimationResourceCollectionFilter>)
:The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.
status(Option<CostEstimationStatus>)
:The status of creating this cost estimate. If it’s still in progress, the status
ONGOING
is returned. If it is finished, the statusCOMPLETED
is returned.costs(Option<Vec::<ServiceResourceCost>>)
:An array of
ResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.time_range(Option<CostEstimationTimeRange>)
:The start and end time of the cost estimation.
total_cost(f64)
:The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated costs to analyze each resource in the
Costs
object in this response.next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<GetCostEstimationError>
source§impl Client
impl Client
sourcepub fn get_resource_collection(&self) -> GetResourceCollectionFluentBuilder
pub fn get_resource_collection(&self) -> GetResourceCollectionFluentBuilder
Constructs a fluent builder for the GetResourceCollection
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_collection_type(ResourceCollectionType)
/set_resource_collection_type(Option<ResourceCollectionType>)
:
required: trueThe type of Amazon Web Services resource collections to return. The one valid value is
CLOUD_FORMATION
for Amazon Web Services CloudFormation stacks.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
GetResourceCollectionOutput
with field(s):resource_collection(Option<ResourceCollectionFilter>)
:The requested list of Amazon Web Services resource collections. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<GetResourceCollectionError>
source§impl Client
impl Client
sourcepub fn list_anomalies_for_insight(&self) -> ListAnomaliesForInsightFluentBuilder
pub fn list_anomalies_for_insight(&self) -> ListAnomaliesForInsightFluentBuilder
Constructs a fluent builder for the ListAnomaliesForInsight
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
insight_id(impl Into<String>)
/set_insight_id(Option<String>)
:
required: trueThe ID of the insight. The returned anomalies belong to this insight.
start_time_range(StartTimeRange)
/set_start_time_range(Option<StartTimeRange>)
:
required: falseA time range used to specify when the requested anomalies started. All returned anomalies started during this time range.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:
required: falseThe ID of the Amazon Web Services account.
filters(ListAnomaliesForInsightFilters)
/set_filters(Option<ListAnomaliesForInsightFilters>)
:
required: falseSpecifies one or more service names that are used to list anomalies.
- On success, responds with
ListAnomaliesForInsightOutput
with field(s):proactive_anomalies(Option<Vec::<ProactiveAnomalySummary>>)
:An array of
ProactiveAnomalySummary
objects that represent the requested anomaliesreactive_anomalies(Option<Vec::<ReactiveAnomalySummary>>)
:An array of
ReactiveAnomalySummary
objects that represent the requested anomaliesnext_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListAnomaliesForInsightError>
source§impl Client
impl Client
sourcepub fn list_anomalous_log_groups(&self) -> ListAnomalousLogGroupsFluentBuilder
pub fn list_anomalous_log_groups(&self) -> ListAnomalousLogGroupsFluentBuilder
Constructs a fluent builder for the ListAnomalousLogGroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
insight_id(impl Into<String>)
/set_insight_id(Option<String>)
:
required: trueThe ID of the insight containing the log groups.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
ListAnomalousLogGroupsOutput
with field(s):insight_id(String)
:The ID of the insight containing the log groups.
anomalous_log_groups(Vec::<AnomalousLogGroup>)
:The list of Amazon CloudWatch log groups that are related to an insight.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListAnomalousLogGroupsError>
source§impl Client
impl Client
sourcepub fn list_events(&self) -> ListEventsFluentBuilder
pub fn list_events(&self) -> ListEventsFluentBuilder
Constructs a fluent builder for the ListEvents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
filters(ListEventsFilters)
/set_filters(Option<ListEventsFilters>)
:
required: trueA
ListEventsFilters
object used to specify which events to return.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:
required: falseThe ID of the Amazon Web Services account.
- On success, responds with
ListEventsOutput
with field(s):events(Vec::<Event>)
:A list of the requested events.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListEventsError>
source§impl Client
impl Client
sourcepub fn list_insights(&self) -> ListInsightsFluentBuilder
pub fn list_insights(&self) -> ListInsightsFluentBuilder
Constructs a fluent builder for the ListInsights
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
status_filter(ListInsightsStatusFilter)
/set_status_filter(Option<ListInsightsStatusFilter>)
:
required: trueA filter used to filter the returned insights by their status. You can specify one status filter.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
ListInsightsOutput
with field(s):proactive_insights(Option<Vec::<ProactiveInsightSummary>>)
:The returned list of proactive insights.
reactive_insights(Option<Vec::<ReactiveInsightSummary>>)
:The returned list of reactive insights.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListInsightsError>
source§impl Client
impl Client
sourcepub fn list_monitored_resources(&self) -> ListMonitoredResourcesFluentBuilder
pub fn list_monitored_resources(&self) -> ListMonitoredResourcesFluentBuilder
Constructs a fluent builder for the ListMonitoredResources
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
filters(ListMonitoredResourcesFilters)
/set_filters(Option<ListMonitoredResourcesFilters>)
:
required: falseFilters to determine which monitored resources you want to retrieve. You can filter by resource type or resource permission status.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
ListMonitoredResourcesOutput
with field(s):monitored_resource_identifiers(Vec::<MonitoredResourceIdentifier>)
:Information about the resource that is being monitored, including the name of the resource, the type of resource, and whether or not permission is given to DevOps Guru to access that resource.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListMonitoredResourcesError>
source§impl Client
impl Client
sourcepub fn list_notification_channels(
&self
) -> ListNotificationChannelsFluentBuilder
pub fn list_notification_channels( &self ) -> ListNotificationChannelsFluentBuilder
Constructs a fluent builder for the ListNotificationChannels
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
ListNotificationChannelsOutput
with field(s):channels(Option<Vec::<NotificationChannel>>)
:An array that contains the requested notification channels.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListNotificationChannelsError>
source§impl Client
impl Client
sourcepub fn list_organization_insights(
&self
) -> ListOrganizationInsightsFluentBuilder
pub fn list_organization_insights( &self ) -> ListOrganizationInsightsFluentBuilder
Constructs a fluent builder for the ListOrganizationInsights
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
status_filter(ListInsightsStatusFilter)
/set_status_filter(Option<ListInsightsStatusFilter>)
:
required: trueA filter used by
ListInsights
to specify which insights to return.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.account_ids(impl Into<String>)
/set_account_ids(Option<Vec::<String>>)
:
required: falseThe ID of the Amazon Web Services account.
organizational_unit_ids(impl Into<String>)
/set_organizational_unit_ids(Option<Vec::<String>>)
:
required: falseThe ID of the organizational unit.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- On success, responds with
ListOrganizationInsightsOutput
with field(s):proactive_insights(Option<Vec::<ProactiveOrganizationInsightSummary>>)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account.
reactive_insights(Option<Vec::<ReactiveOrganizationInsightSummary>>)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListOrganizationInsightsError>
source§impl Client
impl Client
sourcepub fn list_recommendations(&self) -> ListRecommendationsFluentBuilder
pub fn list_recommendations(&self) -> ListRecommendationsFluentBuilder
Constructs a fluent builder for the ListRecommendations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
insight_id(impl Into<String>)
/set_insight_id(Option<String>)
:
required: trueThe ID of the requested insight.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
locale(Locale)
/set_locale(Option<Locale>)
:
required: falseA locale that specifies the language to use for recommendations.
account_id(impl Into<String>)
/set_account_id(Option<String>)
:
required: falseThe ID of the Amazon Web Services account.
- On success, responds with
ListRecommendationsOutput
with field(s):recommendations(Option<Vec::<Recommendation>>)
:An array of the requested recommendations.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<ListRecommendationsError>
source§impl Client
impl Client
sourcepub fn put_feedback(&self) -> PutFeedbackFluentBuilder
pub fn put_feedback(&self) -> PutFeedbackFluentBuilder
Constructs a fluent builder for the PutFeedback
operation.
- The fluent builder is configurable:
insight_feedback(InsightFeedback)
/set_insight_feedback(Option<InsightFeedback>)
:
required: falseThe feedback from customers is about the recommendations in this insight.
- On success, responds with
PutFeedbackOutput
- On failure, responds with
SdkError<PutFeedbackError>
source§impl Client
impl Client
sourcepub fn remove_notification_channel(
&self
) -> RemoveNotificationChannelFluentBuilder
pub fn remove_notification_channel( &self ) -> RemoveNotificationChannelFluentBuilder
Constructs a fluent builder for the RemoveNotificationChannel
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the notification channel to be removed.
- On success, responds with
RemoveNotificationChannelOutput
- On failure, responds with
SdkError<RemoveNotificationChannelError>
source§impl Client
impl Client
sourcepub fn search_insights(&self) -> SearchInsightsFluentBuilder
pub fn search_insights(&self) -> SearchInsightsFluentBuilder
Constructs a fluent builder for the SearchInsights
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
start_time_range(StartTimeRange)
/set_start_time_range(Option<StartTimeRange>)
:
required: trueThe start of the time range passed in. Returned insights occurred after this time.
filters(SearchInsightsFilters)
/set_filters(Option<SearchInsightsFilters>)
:
required: falseA
SearchInsightsFilters
object that is used to set the severity and status filters on your insight search.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
r#type(InsightType)
/set_type(Option<InsightType>)
:
required: trueThe type of insights you are searching for (
REACTIVE
orPROACTIVE
).
- On success, responds with
SearchInsightsOutput
with field(s):proactive_insights(Option<Vec::<ProactiveInsightSummary>>)
:The returned proactive insights.
reactive_insights(Option<Vec::<ReactiveInsightSummary>>)
:The returned reactive insights.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<SearchInsightsError>
source§impl Client
impl Client
sourcepub fn search_organization_insights(
&self
) -> SearchOrganizationInsightsFluentBuilder
pub fn search_organization_insights( &self ) -> SearchOrganizationInsightsFluentBuilder
Constructs a fluent builder for the SearchOrganizationInsights
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
account_ids(impl Into<String>)
/set_account_ids(Option<Vec::<String>>)
:
required: trueThe ID of the Amazon Web Services account.
start_time_range(StartTimeRange)
/set_start_time_range(Option<StartTimeRange>)
:
required: trueA time range used to specify when the behavior of an insight or anomaly started.
filters(SearchOrganizationInsightsFilters)
/set_filters(Option<SearchOrganizationInsightsFilters>)
:
required: falseA
SearchOrganizationInsightsFilters
object that is used to set the severity and status filters on your insight search.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
r#type(InsightType)
/set_type(Option<InsightType>)
:
required: trueThe type of insights you are searching for (
REACTIVE
orPROACTIVE
).
- On success, responds with
SearchOrganizationInsightsOutput
with field(s):proactive_insights(Option<Vec::<ProactiveInsightSummary>>)
:An integer that specifies the number of open proactive insights in your Amazon Web Services account.
reactive_insights(Option<Vec::<ReactiveInsightSummary>>)
:An integer that specifies the number of open reactive insights in your Amazon Web Services account.
next_token(Option<String>)
:The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- On failure, responds with
SdkError<SearchOrganizationInsightsError>
source§impl Client
impl Client
sourcepub fn start_cost_estimation(&self) -> StartCostEstimationFluentBuilder
pub fn start_cost_estimation(&self) -> StartCostEstimationFluentBuilder
Constructs a fluent builder for the StartCostEstimation
operation.
- The fluent builder is configurable:
resource_collection(CostEstimationResourceCollectionFilter)
/set_resource_collection(Option<CostEstimationResourceCollectionFilter>)
:
required: trueThe collection of Amazon Web Services resources used to create a monthly DevOps Guru cost estimate.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseThe idempotency token used to identify each cost estimate request.
- On success, responds with
StartCostEstimationOutput
- On failure, responds with
SdkError<StartCostEstimationError>
source§impl Client
impl Client
sourcepub fn update_event_sources_config(
&self
) -> UpdateEventSourcesConfigFluentBuilder
pub fn update_event_sources_config( &self ) -> UpdateEventSourcesConfigFluentBuilder
Constructs a fluent builder for the UpdateEventSourcesConfig
operation.
- The fluent builder is configurable:
event_sources(EventSourcesConfig)
/set_event_sources(Option<EventSourcesConfig>)
:
required: falseConfiguration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service.
- On success, responds with
UpdateEventSourcesConfigOutput
- On failure, responds with
SdkError<UpdateEventSourcesConfigError>
source§impl Client
impl Client
sourcepub fn update_resource_collection(
&self
) -> UpdateResourceCollectionFluentBuilder
pub fn update_resource_collection( &self ) -> UpdateResourceCollectionFluentBuilder
Constructs a fluent builder for the UpdateResourceCollection
operation.
- The fluent builder is configurable:
action(UpdateResourceCollectionAction)
/set_action(Option<UpdateResourceCollectionAction>)
:
required: trueSpecifies if the resource collection in the request is added or deleted to the resource collection.
resource_collection(UpdateResourceCollectionFilter)
/set_resource_collection(Option<UpdateResourceCollectionFilter>)
:
required: trueContains information used to update a collection of Amazon Web Services resources.
- On success, responds with
UpdateResourceCollectionOutput
- On failure, responds with
SdkError<UpdateResourceCollectionError>
source§impl Client
impl Client
sourcepub fn update_service_integration(
&self
) -> UpdateServiceIntegrationFluentBuilder
pub fn update_service_integration( &self ) -> UpdateServiceIntegrationFluentBuilder
Constructs a fluent builder for the UpdateServiceIntegration
operation.
- The fluent builder is configurable:
service_integration(UpdateServiceIntegrationConfig)
/set_service_integration(Option<UpdateServiceIntegrationConfig>)
:
required: trueAn
IntegratedServiceConfig
object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.
- On success, responds with
UpdateServiceIntegrationOutput
- On failure, responds with
SdkError<UpdateServiceIntegrationError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more