%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! %% See https://github.com/aws-beam/aws-codegen for more details. %% @doc You can use Amazon CloudWatch Observability Admin to discover and %% understand the state of telemetry configuration in CloudWatch for your %% Amazon Web Services Organization or account. %% %% This simplifies the process of auditing your telemetry collection %% configurations across multiple resource types within your Amazon Web %% Services Organization or account. By providing a consolidated view, it %% allows you to easily review and manage telemetry settings, helping you %% ensure proper monitoring and data collection across your Amazon Web %% Services environment. For more information, see Auditing CloudWatch %% telemetry configurations: %% https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/telemetry-config-cloudwatch.html %% in the CloudWatch User Guide. %% %% For information on the permissions you need to use this API, see Identity %% and access management for Amazon CloudWatch: %% https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html %% in the CloudWatch User Guide. -module(aws_observabilityadmin). -export([create_centralization_rule_for_organization/2, create_centralization_rule_for_organization/3, create_s3_table_integration/2, create_s3_table_integration/3, create_telemetry_pipeline/2, create_telemetry_pipeline/3, create_telemetry_rule/2, create_telemetry_rule/3, create_telemetry_rule_for_organization/2, create_telemetry_rule_for_organization/3, delete_centralization_rule_for_organization/2, delete_centralization_rule_for_organization/3, delete_s3_table_integration/2, delete_s3_table_integration/3, delete_telemetry_pipeline/2, delete_telemetry_pipeline/3, delete_telemetry_rule/2, delete_telemetry_rule/3, delete_telemetry_rule_for_organization/2, delete_telemetry_rule_for_organization/3, get_centralization_rule_for_organization/2, get_centralization_rule_for_organization/3, get_s3_table_integration/2, get_s3_table_integration/3, get_telemetry_enrichment_status/2, get_telemetry_enrichment_status/3, get_telemetry_evaluation_status/2, get_telemetry_evaluation_status/3, get_telemetry_evaluation_status_for_organization/2, get_telemetry_evaluation_status_for_organization/3, get_telemetry_pipeline/2, get_telemetry_pipeline/3, get_telemetry_rule/2, get_telemetry_rule/3, get_telemetry_rule_for_organization/2, get_telemetry_rule_for_organization/3, list_centralization_rules_for_organization/2, list_centralization_rules_for_organization/3, list_resource_telemetry/2, list_resource_telemetry/3, list_resource_telemetry_for_organization/2, list_resource_telemetry_for_organization/3, list_s3_table_integrations/2, list_s3_table_integrations/3, list_tags_for_resource/2, list_tags_for_resource/3, list_telemetry_pipelines/2, list_telemetry_pipelines/3, list_telemetry_rules/2, list_telemetry_rules/3, list_telemetry_rules_for_organization/2, list_telemetry_rules_for_organization/3, start_telemetry_enrichment/2, start_telemetry_enrichment/3, start_telemetry_evaluation/2, start_telemetry_evaluation/3, start_telemetry_evaluation_for_organization/2, start_telemetry_evaluation_for_organization/3, stop_telemetry_enrichment/2, stop_telemetry_enrichment/3, stop_telemetry_evaluation/2, stop_telemetry_evaluation/3, stop_telemetry_evaluation_for_organization/2, stop_telemetry_evaluation_for_organization/3, tag_resource/2, tag_resource/3, test_telemetry_pipeline/2, test_telemetry_pipeline/3, untag_resource/2, untag_resource/3, update_centralization_rule_for_organization/2, update_centralization_rule_for_organization/3, update_telemetry_pipeline/2, update_telemetry_pipeline/3, update_telemetry_rule/2, update_telemetry_rule/3, update_telemetry_rule_for_organization/2, update_telemetry_rule_for_organization/3, validate_telemetry_pipeline_configuration/2, validate_telemetry_pipeline_configuration/3]). -include_lib("hackney/include/hackney_lib.hrl"). %% Example: %% list_resource_telemetry_input() :: #{ %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string(), %% <<"ResourceIdentifierPrefix">> => string(), %% <<"ResourceTags">> => map(), %% <<"ResourceTypes">> => list(list(any())()), %% <<"TelemetryConfigurationState">> => map() %% } -type list_resource_telemetry_input() :: #{binary() => any()}. %% Example: %% record() :: #{ %% <<"Data">> => [string()], %% <<"Type">> => list(any()) %% } -type record() :: #{binary() => any()}. %% Example: %% create_telemetry_rule_input() :: #{ %% <<"Rule">> := telemetry_rule(), %% <<"RuleName">> := string(), %% <<"Tags">> => map() %% } -type create_telemetry_rule_input() :: #{binary() => any()}. %% Example: %% pipeline_output() :: #{ %% <<"Error">> => pipeline_output_error(), %% <<"Record">> => record() %% } -type pipeline_output() :: #{binary() => any()}. %% Example: %% telemetry_pipeline_configuration() :: #{ %% <<"Body">> => string() %% } -type telemetry_pipeline_configuration() :: #{binary() => any()}. %% Example: %% get_telemetry_rule_output() :: #{ %% <<"CreatedTimeStamp">> => [float()], %% <<"HomeRegion">> => string(), %% <<"IsReplicated">> => boolean(), %% <<"LastUpdateTimeStamp">> => [float()], %% <<"RegionStatuses">> => list(region_status()), %% <<"RuleArn">> => string(), %% <<"RuleName">> => string(), %% <<"TelemetryRule">> => telemetry_rule() %% } -type get_telemetry_rule_output() :: #{binary() => any()}. %% Example: %% telemetry_pipeline_summary() :: #{ %% <<"Arn">> => string(), %% <<"ConfigurationSummary">> => configuration_summary(), %% <<"CreatedTimeStamp">> => [float()], %% <<"LastUpdateTimeStamp">> => [float()], %% <<"Name">> => string(), %% <<"Status">> => list(any()), %% <<"Tags">> => map() %% } -type telemetry_pipeline_summary() :: #{binary() => any()}. %% Example: %% start_telemetry_evaluation_input() :: #{ %% <<"AllRegions">> => boolean(), %% <<"Regions">> => list(string()) %% } -type start_telemetry_evaluation_input() :: #{binary() => any()}. %% Example: %% test_telemetry_pipeline_output() :: #{ %% <<"Results">> => list(pipeline_output()) %% } -type test_telemetry_pipeline_output() :: #{binary() => any()}. %% Example: %% get_s3_table_integration_input() :: #{ %% <<"Arn">> := string() %% } -type get_s3_table_integration_input() :: #{binary() => any()}. %% Example: %% get_telemetry_evaluation_status_for_organization_output() :: #{ %% <<"FailureReason">> => string(), %% <<"HomeRegion">> => string(), %% <<"RegionStatuses">> => list(region_status()), %% <<"Status">> => list(any()) %% } -type get_telemetry_evaluation_status_for_organization_output() :: #{binary() => any()}. %% Example: %% update_centralization_rule_for_organization_output() :: #{ %% <<"RuleArn">> => string() %% } -type update_centralization_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% field_to_match() :: #{ %% <<"Method">> => [string()], %% <<"QueryString">> => [string()], %% <<"SingleHeader">> => single_header(), %% <<"UriPath">> => [string()] %% } -type field_to_match() :: #{binary() => any()}. %% Example: %% create_centralization_rule_for_organization_output() :: #{ %% <<"RuleArn">> => string() %% } -type create_centralization_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% logs_encryption_configuration() :: #{ %% <<"EncryptionConflictResolutionStrategy">> => list(any()), %% <<"EncryptionStrategy">> => list(any()), %% <<"KmsKeyArn">> => string() %% } -type logs_encryption_configuration() :: #{binary() => any()}. %% Example: %% update_telemetry_pipeline_output() :: #{} -type update_telemetry_pipeline_output() :: #{}. %% Example: %% get_telemetry_evaluation_status_output() :: #{ %% <<"FailureReason">> => string(), %% <<"HomeRegion">> => string(), %% <<"RegionStatuses">> => list(region_status()), %% <<"Status">> => list(any()) %% } -type get_telemetry_evaluation_status_output() :: #{binary() => any()}. %% Example: %% create_telemetry_rule_for_organization_output() :: #{ %% <<"RuleArn">> => string() %% } -type create_telemetry_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% get_telemetry_rule_for_organization_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type get_telemetry_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% telemetry_destination_configuration() :: #{ %% <<"CloudtrailParameters">> => cloudtrail_parameters(), %% <<"DestinationPattern">> => [string()], %% <<"DestinationType">> => list(any()), %% <<"ELBLoadBalancerLoggingParameters">> => e_lb_load_balancer_logging_parameters(), %% <<"LogDeliveryParameters">> => log_delivery_parameters(), %% <<"MskMonitoringParameters">> => msk_monitoring_parameters(), %% <<"RetentionInDays">> => integer(), %% <<"VPCFlowLogParameters">> => vpc_flow_log_parameters(), %% <<"WAFLoggingParameters">> => w_a_f_logging_parameters() %% } -type telemetry_destination_configuration() :: #{binary() => any()}. %% Example: %% get_centralization_rule_for_organization_output() :: #{ %% <<"CentralizationRule">> => centralization_rule(), %% <<"CreatedRegion">> => string(), %% <<"CreatedTimeStamp">> => [float()], %% <<"CreatorAccountId">> => [string()], %% <<"FailureReason">> => list(any()), %% <<"LastUpdateTimeStamp">> => [float()], %% <<"RuleArn">> => string(), %% <<"RuleHealth">> => list(any()), %% <<"RuleName">> => string() %% } -type get_centralization_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% integration_summary() :: #{ %% <<"Arn">> => string(), %% <<"Status">> => list(any()) %% } -type integration_summary() :: #{binary() => any()}. %% Example: %% source_logs_configuration() :: #{ %% <<"DataSourceSelectionCriteria">> => string(), %% <<"EncryptedLogGroupStrategy">> => list(any()), %% <<"LogGroupSelectionCriteria">> => string() %% } -type source_logs_configuration() :: #{binary() => any()}. %% Example: %% configuration_summary() :: #{ %% <<"DataSources">> => list(data_source()), %% <<"ProcessorCount">> => [integer()], %% <<"Processors">> => list([string()]()), %% <<"Sinks">> => list([string()]()), %% <<"Sources">> => list(source()) %% } -type configuration_summary() :: #{binary() => any()}. %% Example: %% invalid_state_exception() :: #{ %% <<"Message">> => [string()] %% } -type invalid_state_exception() :: #{binary() => any()}. %% Example: %% too_many_requests_exception() :: #{ %% <<"Message">> => [string()] %% } -type too_many_requests_exception() :: #{binary() => any()}. %% Example: %% get_telemetry_rule_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type get_telemetry_rule_input() :: #{binary() => any()}. %% Example: %% list_tags_for_resource_output() :: #{ %% <<"Tags">> => map() %% } -type list_tags_for_resource_output() :: #{binary() => any()}. %% Example: %% create_telemetry_pipeline_input() :: #{ %% <<"Configuration">> := telemetry_pipeline_configuration(), %% <<"Name">> := string(), %% <<"Tags">> => map() %% } -type create_telemetry_pipeline_input() :: #{binary() => any()}. %% Example: %% delete_telemetry_pipeline_input() :: #{ %% <<"PipelineIdentifier">> := string() %% } -type delete_telemetry_pipeline_input() :: #{binary() => any()}. %% Example: %% delete_centralization_rule_for_organization_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type delete_centralization_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% log_group_name_configuration() :: #{ %% <<"LogGroupNamePattern">> => string() %% } -type log_group_name_configuration() :: #{binary() => any()}. %% Example: %% advanced_event_selector() :: #{ %% <<"FieldSelectors">> => list(advanced_field_selector()), %% <<"Name">> => [string()] %% } -type advanced_event_selector() :: #{binary() => any()}. %% Example: %% centralization_rule_source() :: #{ %% <<"Regions">> => list(string()), %% <<"Scope">> => string(), %% <<"SourceLogsConfiguration">> => source_logs_configuration() %% } -type centralization_rule_source() :: #{binary() => any()}. %% Example: %% get_telemetry_rule_for_organization_output() :: #{ %% <<"CreatedTimeStamp">> => [float()], %% <<"HomeRegion">> => string(), %% <<"IsReplicated">> => boolean(), %% <<"LastUpdateTimeStamp">> => [float()], %% <<"RegionStatuses">> => list(region_status()), %% <<"RuleArn">> => string(), %% <<"RuleName">> => string(), %% <<"TelemetryRule">> => telemetry_rule() %% } -type get_telemetry_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% get_telemetry_enrichment_status_output() :: #{ %% <<"AwsResourceExplorerManagedViewArn">> => string(), %% <<"Status">> => list(any()) %% } -type get_telemetry_enrichment_status_output() :: #{binary() => any()}. %% Example: %% telemetry_configuration() :: #{ %% <<"AccountIdentifier">> => string(), %% <<"LastUpdateTimeStamp">> => [float()], %% <<"ResourceIdentifier">> => string(), %% <<"ResourceTags">> => map(), %% <<"ResourceType">> => list(any()), %% <<"TelemetryConfigurationState">> => map(), %% <<"TelemetrySourceType">> => list(any()) %% } -type telemetry_configuration() :: #{binary() => any()}. %% Example: %% list_resource_telemetry_output() :: #{ %% <<"NextToken">> => string(), %% <<"TelemetryConfigurations">> => list(telemetry_configuration()) %% } -type list_resource_telemetry_output() :: #{binary() => any()}. %% Example: %% conflict_exception() :: #{ %% <<"Message">> => [string()], %% <<"ResourceId">> => [string()], %% <<"ResourceType">> => [string()] %% } -type conflict_exception() :: #{binary() => any()}. %% Example: %% get_s3_table_integration_output() :: #{ %% <<"Arn">> => string(), %% <<"CreatedTimeStamp">> => [float()], %% <<"DestinationTableBucketArn">> => string(), %% <<"Encryption">> => encryption(), %% <<"RoleArn">> => string(), %% <<"Status">> => list(any()) %% } -type get_s3_table_integration_output() :: #{binary() => any()}. %% Example: %% resource_not_found_exception() :: #{ %% <<"Message">> => [string()], %% <<"ResourceId">> => [string()], %% <<"ResourceType">> => [string()] %% } -type resource_not_found_exception() :: #{binary() => any()}. %% Example: %% msk_monitoring_parameters() :: #{ %% <<"EnhancedMonitoring">> => list(any()) %% } -type msk_monitoring_parameters() :: #{binary() => any()}. %% Example: %% update_telemetry_rule_for_organization_output() :: #{ %% <<"RuleArn">> => string() %% } -type update_telemetry_rule_for_organization_output() :: #{binary() => any()}. %% Example: %% log_delivery_parameters() :: #{ %% <<"LogTypes">> => list(list(any())()) %% } -type log_delivery_parameters() :: #{binary() => any()}. %% Example: %% update_centralization_rule_for_organization_input() :: #{ %% <<"Rule">> := centralization_rule(), %% <<"RuleIdentifier">> := string() %% } -type update_centralization_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% service_quota_exceeded_exception() :: #{ %% <<"Message">> => [string()], %% <<"QuotaCode">> => [string()], %% <<"ResourceId">> => [string()], %% <<"ResourceType">> => [string()], %% <<"ServiceCode">> => [string()], %% <<"amznErrorType">> => [string()] %% } -type service_quota_exceeded_exception() :: #{binary() => any()}. %% Example: %% destination_logs_configuration() :: #{ %% <<"BackupConfiguration">> => logs_backup_configuration(), %% <<"LogGroupNameConfiguration">> => log_group_name_configuration(), %% <<"LogsEncryptionConfiguration">> => logs_encryption_configuration() %% } -type destination_logs_configuration() :: #{binary() => any()}. %% Example: %% list_s3_table_integrations_input() :: #{ %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string() %% } -type list_s3_table_integrations_input() :: #{binary() => any()}. %% Example: %% list_telemetry_rules_for_organization_output() :: #{ %% <<"NextToken">> => string(), %% <<"TelemetryRuleSummaries">> => list(telemetry_rule_summary()) %% } -type list_telemetry_rules_for_organization_output() :: #{binary() => any()}. %% Example: %% list_resource_telemetry_for_organization_output() :: #{ %% <<"NextToken">> => string(), %% <<"TelemetryConfigurations">> => list(telemetry_configuration()) %% } -type list_resource_telemetry_for_organization_output() :: #{binary() => any()}. %% Example: %% start_telemetry_evaluation_for_organization_input() :: #{ %% <<"AllRegions">> => boolean(), %% <<"Regions">> => list(string()) %% } -type start_telemetry_evaluation_for_organization_input() :: #{binary() => any()}. %% Example: %% encryption() :: #{ %% <<"KmsKeyArn">> => string(), %% <<"SseAlgorithm">> => list(any()) %% } -type encryption() :: #{binary() => any()}. %% Example: %% create_centralization_rule_for_organization_input() :: #{ %% <<"Rule">> := centralization_rule(), %% <<"RuleName">> := string(), %% <<"Tags">> => map() %% } -type create_centralization_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% update_telemetry_rule_for_organization_input() :: #{ %% <<"Rule">> := telemetry_rule(), %% <<"RuleIdentifier">> := string() %% } -type update_telemetry_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% list_telemetry_rules_for_organization_input() :: #{ %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string(), %% <<"RuleNamePrefix">> => [string()], %% <<"SourceAccountIds">> => list(string()), %% <<"SourceOrganizationUnitIds">> => list(string()) %% } -type list_telemetry_rules_for_organization_input() :: #{binary() => any()}. %% Example: %% validation_error() :: #{ %% <<"FieldMap">> => map(), %% <<"Message">> => [string()], %% <<"Reason">> => [string()] %% } -type validation_error() :: #{binary() => any()}. %% Example: %% logs_backup_configuration() :: #{ %% <<"KmsKeyArn">> => string(), %% <<"Region">> => string() %% } -type logs_backup_configuration() :: #{binary() => any()}. %% Example: %% telemetry_pipeline() :: #{ %% <<"Arn">> => string(), %% <<"Configuration">> => telemetry_pipeline_configuration(), %% <<"CreatedTimeStamp">> => [float()], %% <<"LastUpdateTimeStamp">> => [float()], %% <<"Name">> => string(), %% <<"Status">> => list(any()), %% <<"StatusReason">> => telemetry_pipeline_status_reason(), %% <<"Tags">> => map() %% } -type telemetry_pipeline() :: #{binary() => any()}. %% Example: %% cloudtrail_parameters() :: #{ %% <<"AdvancedEventSelectors">> => list(advanced_event_selector()) %% } -type cloudtrail_parameters() :: #{binary() => any()}. %% Example: %% list_resource_telemetry_for_organization_input() :: #{ %% <<"AccountIdentifiers">> => list(string()), %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string(), %% <<"ResourceIdentifierPrefix">> => string(), %% <<"ResourceTags">> => map(), %% <<"ResourceTypes">> => list(list(any())()), %% <<"TelemetryConfigurationState">> => map() %% } -type list_resource_telemetry_for_organization_input() :: #{binary() => any()}. %% Example: %% e_lb_load_balancer_logging_parameters() :: #{ %% <<"FieldDelimiter">> => [string()], %% <<"OutputFormat">> => list(any()) %% } -type e_lb_load_balancer_logging_parameters() :: #{binary() => any()}. %% Example: %% condition() :: #{ %% <<"ActionCondition">> => action_condition(), %% <<"LabelNameCondition">> => label_name_condition() %% } -type condition() :: #{binary() => any()}. %% Example: %% region_status() :: #{ %% <<"FailureReason">> => [string()], %% <<"Region">> => string(), %% <<"RuleArn">> => string(), %% <<"Status">> => [string()] %% } -type region_status() :: #{binary() => any()}. %% Example: %% list_centralization_rules_for_organization_output() :: #{ %% <<"CentralizationRuleSummaries">> => list(centralization_rule_summary()), %% <<"NextToken">> => string() %% } -type list_centralization_rules_for_organization_output() :: #{binary() => any()}. %% Example: %% tag_resource_input() :: #{ %% <<"ResourceARN">> := string(), %% <<"Tags">> := map() %% } -type tag_resource_input() :: #{binary() => any()}. %% Example: %% filter() :: #{ %% <<"Behavior">> => list(any()), %% <<"Conditions">> => list(condition()), %% <<"Requirement">> => list(any()) %% } -type filter() :: #{binary() => any()}. %% Example: %% centralization_rule_summary() :: #{ %% <<"CreatedRegion">> => string(), %% <<"CreatedTimeStamp">> => [float()], %% <<"CreatorAccountId">> => [string()], %% <<"DestinationAccountId">> => [string()], %% <<"DestinationRegion">> => string(), %% <<"FailureReason">> => list(any()), %% <<"LastUpdateTimeStamp">> => [float()], %% <<"RuleArn">> => string(), %% <<"RuleHealth">> => list(any()), %% <<"RuleName">> => string() %% } -type centralization_rule_summary() :: #{binary() => any()}. %% Example: %% update_telemetry_pipeline_input() :: #{ %% <<"Configuration">> := telemetry_pipeline_configuration(), %% <<"PipelineIdentifier">> := string() %% } -type update_telemetry_pipeline_input() :: #{binary() => any()}. %% Example: %% list_s3_table_integrations_output() :: #{ %% <<"IntegrationSummaries">> => list(integration_summary()), %% <<"NextToken">> => string() %% } -type list_s3_table_integrations_output() :: #{binary() => any()}. %% Example: %% update_telemetry_rule_output() :: #{ %% <<"RuleArn">> => string() %% } -type update_telemetry_rule_output() :: #{binary() => any()}. %% Example: %% stop_telemetry_enrichment_output() :: #{ %% <<"Status">> => list(any()) %% } -type stop_telemetry_enrichment_output() :: #{binary() => any()}. %% Example: %% source() :: #{ %% <<"Type">> => [string()] %% } -type source() :: #{binary() => any()}. %% Example: %% internal_server_exception() :: #{ %% <<"Message">> => [string()], %% <<"amznErrorType">> => [string()], %% <<"retryAfterSeconds">> => [integer()] %% } -type internal_server_exception() :: #{binary() => any()}. %% Example: %% validate_telemetry_pipeline_configuration_input() :: #{ %% <<"Configuration">> := telemetry_pipeline_configuration() %% } -type validate_telemetry_pipeline_configuration_input() :: #{binary() => any()}. %% Example: %% access_denied_exception() :: #{ %% <<"Message">> => [string()], %% <<"amznErrorType">> => [string()] %% } -type access_denied_exception() :: #{binary() => any()}. %% Example: %% vpc_flow_log_parameters() :: #{ %% <<"LogFormat">> => [string()], %% <<"MaxAggregationInterval">> => [integer()], %% <<"TrafficType">> => [string()] %% } -type vpc_flow_log_parameters() :: #{binary() => any()}. %% Example: %% validate_telemetry_pipeline_configuration_output() :: #{ %% <<"Errors">> => list(validation_error()) %% } -type validate_telemetry_pipeline_configuration_output() :: #{binary() => any()}. %% Example: %% untag_resource_input() :: #{ %% <<"ResourceARN">> := string(), %% <<"TagKeys">> := list(string()) %% } -type untag_resource_input() :: #{binary() => any()}. %% Example: %% get_centralization_rule_for_organization_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type get_centralization_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% update_telemetry_rule_input() :: #{ %% <<"Rule">> := telemetry_rule(), %% <<"RuleIdentifier">> := string() %% } -type update_telemetry_rule_input() :: #{binary() => any()}. %% Example: %% create_s3_table_integration_input() :: #{ %% <<"Encryption">> := encryption(), %% <<"RoleArn">> := string(), %% <<"Tags">> => map() %% } -type create_s3_table_integration_input() :: #{binary() => any()}. %% Example: %% list_telemetry_rules_input() :: #{ %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string(), %% <<"RuleNamePrefix">> => [string()] %% } -type list_telemetry_rules_input() :: #{binary() => any()}. %% Example: %% logging_filter() :: #{ %% <<"DefaultBehavior">> => list(any()), %% <<"Filters">> => list(filter()) %% } -type logging_filter() :: #{binary() => any()}. %% Example: %% start_telemetry_enrichment_output() :: #{ %% <<"AwsResourceExplorerManagedViewArn">> => string(), %% <<"Status">> => list(any()) %% } -type start_telemetry_enrichment_output() :: #{binary() => any()}. %% Example: %% telemetry_rule_summary() :: #{ %% <<"CreatedTimeStamp">> => [float()], %% <<"LastUpdateTimeStamp">> => [float()], %% <<"ResourceType">> => list(any()), %% <<"RuleArn">> => string(), %% <<"RuleName">> => string(), %% <<"TelemetrySourceTypes">> => list(list(any())()), %% <<"TelemetryType">> => list(any()) %% } -type telemetry_rule_summary() :: #{binary() => any()}. %% Example: %% create_s3_table_integration_output() :: #{ %% <<"Arn">> => string() %% } -type create_s3_table_integration_output() :: #{binary() => any()}. %% Example: %% validation_exception() :: #{ %% <<"Errors">> => list(validation_error()), %% <<"Message">> => [string()] %% } -type validation_exception() :: #{binary() => any()}. %% Example: %% list_tags_for_resource_input() :: #{ %% <<"ResourceARN">> := string() %% } -type list_tags_for_resource_input() :: #{binary() => any()}. %% Example: %% label_name_condition() :: #{ %% <<"LabelName">> => [string()] %% } -type label_name_condition() :: #{binary() => any()}. %% Example: %% single_header() :: #{ %% <<"Name">> => [string()] %% } -type single_header() :: #{binary() => any()}. %% Example: %% create_telemetry_rule_for_organization_input() :: #{ %% <<"Rule">> := telemetry_rule(), %% <<"RuleName">> := string(), %% <<"Tags">> => map() %% } -type create_telemetry_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% advanced_field_selector() :: #{ %% <<"EndsWith">> => list([string()]()), %% <<"Equals">> => list([string()]()), %% <<"Field">> => [string()], %% <<"NotEndsWith">> => list([string()]()), %% <<"NotEquals">> => list([string()]()), %% <<"NotStartsWith">> => list([string()]()), %% <<"StartsWith">> => list([string()]()) %% } -type advanced_field_selector() :: #{binary() => any()}. %% Example: %% centralization_rule_destination() :: #{ %% <<"Account">> => string(), %% <<"DestinationLogsConfiguration">> => destination_logs_configuration(), %% <<"Region">> => string() %% } -type centralization_rule_destination() :: #{binary() => any()}. %% Example: %% telemetry_rule() :: #{ %% <<"AllRegions">> => boolean(), %% <<"AllowFieldUpdates">> => [boolean()], %% <<"DestinationConfiguration">> => telemetry_destination_configuration(), %% <<"Regions">> => list(string()), %% <<"ResourceType">> => list(any()), %% <<"Scope">> => [string()], %% <<"SelectionCriteria">> => [string()], %% <<"TelemetrySourceTypes">> => list(list(any())()), %% <<"TelemetryType">> => list(any()) %% } -type telemetry_rule() :: #{binary() => any()}. %% Example: %% delete_s3_table_integration_input() :: #{ %% <<"Arn">> := string() %% } -type delete_s3_table_integration_input() :: #{binary() => any()}. %% Example: %% telemetry_pipeline_status_reason() :: #{ %% <<"Description">> => [string()] %% } -type telemetry_pipeline_status_reason() :: #{binary() => any()}. %% Example: %% action_condition() :: #{ %% <<"Action">> => list(any()) %% } -type action_condition() :: #{binary() => any()}. %% Example: %% delete_telemetry_rule_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type delete_telemetry_rule_input() :: #{binary() => any()}. %% Example: %% data_source() :: #{ %% <<"Name">> => [string()], %% <<"Type">> => [string()] %% } -type data_source() :: #{binary() => any()}. %% Example: %% delete_telemetry_rule_for_organization_input() :: #{ %% <<"RuleIdentifier">> := string() %% } -type delete_telemetry_rule_for_organization_input() :: #{binary() => any()}. %% Example: %% list_telemetry_pipelines_input() :: #{ %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string() %% } -type list_telemetry_pipelines_input() :: #{binary() => any()}. %% Example: %% get_telemetry_pipeline_output() :: #{ %% <<"Pipeline">> => telemetry_pipeline() %% } -type get_telemetry_pipeline_output() :: #{binary() => any()}. %% Example: %% create_telemetry_rule_output() :: #{ %% <<"RuleArn">> => string() %% } -type create_telemetry_rule_output() :: #{binary() => any()}. %% Example: %% delete_telemetry_pipeline_output() :: #{} -type delete_telemetry_pipeline_output() :: #{}. %% Example: %% w_a_f_logging_parameters() :: #{ %% <<"LogType">> => list(any()), %% <<"LoggingFilter">> => logging_filter(), %% <<"RedactedFields">> => list(field_to_match()) %% } -type w_a_f_logging_parameters() :: #{binary() => any()}. %% Example: %% create_telemetry_pipeline_output() :: #{ %% <<"Arn">> => string() %% } -type create_telemetry_pipeline_output() :: #{binary() => any()}. %% Example: %% list_telemetry_pipelines_output() :: #{ %% <<"NextToken">> => string(), %% <<"PipelineSummaries">> => list(telemetry_pipeline_summary()) %% } -type list_telemetry_pipelines_output() :: #{binary() => any()}. %% Example: %% list_telemetry_rules_output() :: #{ %% <<"NextToken">> => string(), %% <<"TelemetryRuleSummaries">> => list(telemetry_rule_summary()) %% } -type list_telemetry_rules_output() :: #{binary() => any()}. %% Example: %% centralization_rule() :: #{ %% <<"Destination">> => centralization_rule_destination(), %% <<"Source">> => centralization_rule_source() %% } -type centralization_rule() :: #{binary() => any()}. %% Example: %% pipeline_output_error() :: #{ %% <<"Message">> => [string()] %% } -type pipeline_output_error() :: #{binary() => any()}. %% Example: %% get_telemetry_pipeline_input() :: #{ %% <<"PipelineIdentifier">> := string() %% } -type get_telemetry_pipeline_input() :: #{binary() => any()}. %% Example: %% list_centralization_rules_for_organization_input() :: #{ %% <<"AllRegions">> => [boolean()], %% <<"MaxResults">> => integer(), %% <<"NextToken">> => string(), %% <<"RuleNamePrefix">> => [string()] %% } -type list_centralization_rules_for_organization_input() :: #{binary() => any()}. %% Example: %% test_telemetry_pipeline_input() :: #{ %% <<"Configuration">> := telemetry_pipeline_configuration(), %% <<"Records">> := list(record()) %% } -type test_telemetry_pipeline_input() :: #{binary() => any()}. -type create_centralization_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception() | too_many_requests_exception(). -type create_s3_table_integration_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception() | too_many_requests_exception(). -type create_telemetry_pipeline_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception() | too_many_requests_exception(). -type create_telemetry_rule_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception() | too_many_requests_exception(). -type create_telemetry_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception() | too_many_requests_exception(). -type delete_centralization_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type delete_s3_table_integration_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | too_many_requests_exception() | invalid_state_exception(). -type delete_telemetry_pipeline_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception() | too_many_requests_exception(). -type delete_telemetry_rule_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type delete_telemetry_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_centralization_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_s3_table_integration_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_telemetry_enrichment_status_errors() :: access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_telemetry_evaluation_status_errors() :: access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type get_telemetry_evaluation_status_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type get_telemetry_pipeline_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_telemetry_rule_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type get_telemetry_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type list_centralization_rules_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_resource_telemetry_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_resource_telemetry_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_s3_table_integrations_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_tags_for_resource_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type list_telemetry_pipelines_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_telemetry_rules_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type list_telemetry_rules_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type start_telemetry_enrichment_errors() :: access_denied_exception() | internal_server_exception() | conflict_exception() | too_many_requests_exception(). -type start_telemetry_evaluation_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type start_telemetry_evaluation_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type stop_telemetry_enrichment_errors() :: access_denied_exception() | internal_server_exception() | conflict_exception() | too_many_requests_exception(). -type stop_telemetry_evaluation_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type stop_telemetry_evaluation_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type tag_resource_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | too_many_requests_exception(). -type test_telemetry_pipeline_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). -type untag_resource_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type update_centralization_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | too_many_requests_exception(). -type update_telemetry_pipeline_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | too_many_requests_exception(). -type update_telemetry_rule_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | too_many_requests_exception(). -type update_telemetry_rule_for_organization_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | too_many_requests_exception(). -type validate_telemetry_pipeline_configuration_errors() :: validation_exception() | access_denied_exception() | internal_server_exception() | too_many_requests_exception(). %%==================================================================== %% API %%==================================================================== %% @doc Creates a centralization rule that applies across an Amazon Web %% Services Organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec create_centralization_rule_for_organization(aws_client:aws_client(), create_centralization_rule_for_organization_input()) -> {ok, create_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, create_centralization_rule_for_organization_errors(), tuple()}. create_centralization_rule_for_organization(Client, Input) -> create_centralization_rule_for_organization(Client, Input, []). -spec create_centralization_rule_for_organization(aws_client:aws_client(), create_centralization_rule_for_organization_input(), proplists:proplist()) -> {ok, create_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, create_centralization_rule_for_organization_errors(), tuple()}. create_centralization_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/CreateCentralizationRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates an integration between CloudWatch and S3 Tables for %% analytics. %% %% This integration enables querying CloudWatch telemetry data using %% analytics engines like Amazon Athena, Amazon Redshift, and Apache Spark. -spec create_s3_table_integration(aws_client:aws_client(), create_s3_table_integration_input()) -> {ok, create_s3_table_integration_output(), tuple()} | {error, any()} | {error, create_s3_table_integration_errors(), tuple()}. create_s3_table_integration(Client, Input) -> create_s3_table_integration(Client, Input, []). -spec create_s3_table_integration(aws_client:aws_client(), create_s3_table_integration_input(), proplists:proplist()) -> {ok, create_s3_table_integration_output(), tuple()} | {error, any()} | {error, create_s3_table_integration_errors(), tuple()}. create_s3_table_integration(Client, Input0, Options0) -> Method = post, Path = ["/CreateS3TableIntegration"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a telemetry pipeline for processing and transforming %% telemetry data. %% %% The pipeline defines how data flows from sources through processors to %% destinations, enabling data transformation and delivering capabilities. -spec create_telemetry_pipeline(aws_client:aws_client(), create_telemetry_pipeline_input()) -> {ok, create_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, create_telemetry_pipeline_errors(), tuple()}. create_telemetry_pipeline(Client, Input) -> create_telemetry_pipeline(Client, Input, []). -spec create_telemetry_pipeline(aws_client:aws_client(), create_telemetry_pipeline_input(), proplists:proplist()) -> {ok, create_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, create_telemetry_pipeline_errors(), tuple()}. create_telemetry_pipeline(Client, Input0, Options0) -> Method = post, Path = ["/CreateTelemetryPipeline"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a telemetry rule that defines how telemetry should be %% configured for Amazon Web Services resources in your account. %% %% The rule specifies which resources should have telemetry enabled and how %% that telemetry data should be collected based on resource type, telemetry %% type, and selection criteria. -spec create_telemetry_rule(aws_client:aws_client(), create_telemetry_rule_input()) -> {ok, create_telemetry_rule_output(), tuple()} | {error, any()} | {error, create_telemetry_rule_errors(), tuple()}. create_telemetry_rule(Client, Input) -> create_telemetry_rule(Client, Input, []). -spec create_telemetry_rule(aws_client:aws_client(), create_telemetry_rule_input(), proplists:proplist()) -> {ok, create_telemetry_rule_output(), tuple()} | {error, any()} | {error, create_telemetry_rule_errors(), tuple()}. create_telemetry_rule(Client, Input0, Options0) -> Method = post, Path = ["/CreateTelemetryRule"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a telemetry rule that applies across an Amazon Web Services %% Organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec create_telemetry_rule_for_organization(aws_client:aws_client(), create_telemetry_rule_for_organization_input()) -> {ok, create_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, create_telemetry_rule_for_organization_errors(), tuple()}. create_telemetry_rule_for_organization(Client, Input) -> create_telemetry_rule_for_organization(Client, Input, []). -spec create_telemetry_rule_for_organization(aws_client:aws_client(), create_telemetry_rule_for_organization_input(), proplists:proplist()) -> {ok, create_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, create_telemetry_rule_for_organization_errors(), tuple()}. create_telemetry_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/CreateTelemetryRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an organization-wide centralization rule. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec delete_centralization_rule_for_organization(aws_client:aws_client(), delete_centralization_rule_for_organization_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_centralization_rule_for_organization_errors(), tuple()}. delete_centralization_rule_for_organization(Client, Input) -> delete_centralization_rule_for_organization(Client, Input, []). -spec delete_centralization_rule_for_organization(aws_client:aws_client(), delete_centralization_rule_for_organization_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_centralization_rule_for_organization_errors(), tuple()}. delete_centralization_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/DeleteCentralizationRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an S3 Table integration and its associated data. %% %% This operation removes the connection between CloudWatch Observability %% Admin and S3 Tables. -spec delete_s3_table_integration(aws_client:aws_client(), delete_s3_table_integration_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_s3_table_integration_errors(), tuple()}. delete_s3_table_integration(Client, Input) -> delete_s3_table_integration(Client, Input, []). -spec delete_s3_table_integration(aws_client:aws_client(), delete_s3_table_integration_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_s3_table_integration_errors(), tuple()}. delete_s3_table_integration(Client, Input0, Options0) -> Method = post, Path = ["/DeleteS3TableIntegration"], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a telemetry pipeline and its associated resources. %% %% This operation stops data processing and removes the pipeline %% configuration. -spec delete_telemetry_pipeline(aws_client:aws_client(), delete_telemetry_pipeline_input()) -> {ok, delete_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, delete_telemetry_pipeline_errors(), tuple()}. delete_telemetry_pipeline(Client, Input) -> delete_telemetry_pipeline(Client, Input, []). -spec delete_telemetry_pipeline(aws_client:aws_client(), delete_telemetry_pipeline_input(), proplists:proplist()) -> {ok, delete_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, delete_telemetry_pipeline_errors(), tuple()}. delete_telemetry_pipeline(Client, Input0, Options0) -> Method = post, Path = ["/DeleteTelemetryPipeline"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a telemetry rule from your account. %% %% Any telemetry configurations previously created by the rule will remain %% but no new resources will be configured by this rule. -spec delete_telemetry_rule(aws_client:aws_client(), delete_telemetry_rule_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_telemetry_rule_errors(), tuple()}. delete_telemetry_rule(Client, Input) -> delete_telemetry_rule(Client, Input, []). -spec delete_telemetry_rule(aws_client:aws_client(), delete_telemetry_rule_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_telemetry_rule_errors(), tuple()}. delete_telemetry_rule(Client, Input0, Options0) -> Method = post, Path = ["/DeleteTelemetryRule"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an organization-wide telemetry rule. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec delete_telemetry_rule_for_organization(aws_client:aws_client(), delete_telemetry_rule_for_organization_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_telemetry_rule_for_organization_errors(), tuple()}. delete_telemetry_rule_for_organization(Client, Input) -> delete_telemetry_rule_for_organization(Client, Input, []). -spec delete_telemetry_rule_for_organization(aws_client:aws_client(), delete_telemetry_rule_for_organization_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, delete_telemetry_rule_for_organization_errors(), tuple()}. delete_telemetry_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/DeleteTelemetryRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves the details of a specific organization centralization rule. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec get_centralization_rule_for_organization(aws_client:aws_client(), get_centralization_rule_for_organization_input()) -> {ok, get_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, get_centralization_rule_for_organization_errors(), tuple()}. get_centralization_rule_for_organization(Client, Input) -> get_centralization_rule_for_organization(Client, Input, []). -spec get_centralization_rule_for_organization(aws_client:aws_client(), get_centralization_rule_for_organization_input(), proplists:proplist()) -> {ok, get_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, get_centralization_rule_for_organization_errors(), tuple()}. get_centralization_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/GetCentralizationRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves information about a specific S3 Table integration, %% including its configuration, status, and metadata. -spec get_s3_table_integration(aws_client:aws_client(), get_s3_table_integration_input()) -> {ok, get_s3_table_integration_output(), tuple()} | {error, any()} | {error, get_s3_table_integration_errors(), tuple()}. get_s3_table_integration(Client, Input) -> get_s3_table_integration(Client, Input, []). -spec get_s3_table_integration(aws_client:aws_client(), get_s3_table_integration_input(), proplists:proplist()) -> {ok, get_s3_table_integration_output(), tuple()} | {error, any()} | {error, get_s3_table_integration_errors(), tuple()}. get_s3_table_integration(Client, Input0, Options0) -> Method = post, Path = ["/GetS3TableIntegration"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns the current status of the resource tags for telemetry %% feature, which enhances telemetry data with additional resource metadata %% from Resource Explorer. -spec get_telemetry_enrichment_status(aws_client:aws_client(), #{}) -> {ok, get_telemetry_enrichment_status_output(), tuple()} | {error, any()} | {error, get_telemetry_enrichment_status_errors(), tuple()}. get_telemetry_enrichment_status(Client, Input) -> get_telemetry_enrichment_status(Client, Input, []). -spec get_telemetry_enrichment_status(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, get_telemetry_enrichment_status_output(), tuple()} | {error, any()} | {error, get_telemetry_enrichment_status_errors(), tuple()}. get_telemetry_enrichment_status(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryEnrichmentStatus"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns the current onboarding status of the telemetry config %% feature, including the status of the feature and reason the feature failed %% to start or stop. -spec get_telemetry_evaluation_status(aws_client:aws_client(), #{}) -> {ok, get_telemetry_evaluation_status_output(), tuple()} | {error, any()} | {error, get_telemetry_evaluation_status_errors(), tuple()}. get_telemetry_evaluation_status(Client, Input) -> get_telemetry_evaluation_status(Client, Input, []). -spec get_telemetry_evaluation_status(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, get_telemetry_evaluation_status_output(), tuple()} | {error, any()} | {error, get_telemetry_evaluation_status_errors(), tuple()}. get_telemetry_evaluation_status(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryEvaluationStatus"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc This returns the onboarding status of the telemetry configuration %% feature for the organization. %% %% It can only be called by a Management Account of an Amazon Web Services %% Organization or an assigned Delegated Admin Account of Amazon CloudWatch %% telemetry config. -spec get_telemetry_evaluation_status_for_organization(aws_client:aws_client(), #{}) -> {ok, get_telemetry_evaluation_status_for_organization_output(), tuple()} | {error, any()} | {error, get_telemetry_evaluation_status_for_organization_errors(), tuple()}. get_telemetry_evaluation_status_for_organization(Client, Input) -> get_telemetry_evaluation_status_for_organization(Client, Input, []). -spec get_telemetry_evaluation_status_for_organization(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, get_telemetry_evaluation_status_for_organization_output(), tuple()} | {error, any()} | {error, get_telemetry_evaluation_status_for_organization_errors(), tuple()}. get_telemetry_evaluation_status_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryEvaluationStatusForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves information about a specific telemetry pipeline, including %% its configuration, status, and metadata. -spec get_telemetry_pipeline(aws_client:aws_client(), get_telemetry_pipeline_input()) -> {ok, get_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, get_telemetry_pipeline_errors(), tuple()}. get_telemetry_pipeline(Client, Input) -> get_telemetry_pipeline(Client, Input, []). -spec get_telemetry_pipeline(aws_client:aws_client(), get_telemetry_pipeline_input(), proplists:proplist()) -> {ok, get_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, get_telemetry_pipeline_errors(), tuple()}. get_telemetry_pipeline(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryPipeline"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves the details of a specific telemetry rule in your account. -spec get_telemetry_rule(aws_client:aws_client(), get_telemetry_rule_input()) -> {ok, get_telemetry_rule_output(), tuple()} | {error, any()} | {error, get_telemetry_rule_errors(), tuple()}. get_telemetry_rule(Client, Input) -> get_telemetry_rule(Client, Input, []). -spec get_telemetry_rule(aws_client:aws_client(), get_telemetry_rule_input(), proplists:proplist()) -> {ok, get_telemetry_rule_output(), tuple()} | {error, any()} | {error, get_telemetry_rule_errors(), tuple()}. get_telemetry_rule(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryRule"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves the details of a specific organization telemetry rule. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec get_telemetry_rule_for_organization(aws_client:aws_client(), get_telemetry_rule_for_organization_input()) -> {ok, get_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, get_telemetry_rule_for_organization_errors(), tuple()}. get_telemetry_rule_for_organization(Client, Input) -> get_telemetry_rule_for_organization(Client, Input, []). -spec get_telemetry_rule_for_organization(aws_client:aws_client(), get_telemetry_rule_for_organization_input(), proplists:proplist()) -> {ok, get_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, get_telemetry_rule_for_organization_errors(), tuple()}. get_telemetry_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/GetTelemetryRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all centralization rules in your organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec list_centralization_rules_for_organization(aws_client:aws_client(), list_centralization_rules_for_organization_input()) -> {ok, list_centralization_rules_for_organization_output(), tuple()} | {error, any()} | {error, list_centralization_rules_for_organization_errors(), tuple()}. list_centralization_rules_for_organization(Client, Input) -> list_centralization_rules_for_organization(Client, Input, []). -spec list_centralization_rules_for_organization(aws_client:aws_client(), list_centralization_rules_for_organization_input(), proplists:proplist()) -> {ok, list_centralization_rules_for_organization_output(), tuple()} | {error, any()} | {error, list_centralization_rules_for_organization_errors(), tuple()}. list_centralization_rules_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/ListCentralizationRulesForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns a list of telemetry configurations for Amazon Web Services %% resources supported by telemetry config. %% %% For more information, see Auditing CloudWatch telemetry configurations: %% https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/telemetry-config-cloudwatch.html. -spec list_resource_telemetry(aws_client:aws_client(), list_resource_telemetry_input()) -> {ok, list_resource_telemetry_output(), tuple()} | {error, any()} | {error, list_resource_telemetry_errors(), tuple()}. list_resource_telemetry(Client, Input) -> list_resource_telemetry(Client, Input, []). -spec list_resource_telemetry(aws_client:aws_client(), list_resource_telemetry_input(), proplists:proplist()) -> {ok, list_resource_telemetry_output(), tuple()} | {error, any()} | {error, list_resource_telemetry_errors(), tuple()}. list_resource_telemetry(Client, Input0, Options0) -> Method = post, Path = ["/ListResourceTelemetry"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns a list of telemetry configurations for Amazon Web Services %% resources supported by telemetry config in the organization. -spec list_resource_telemetry_for_organization(aws_client:aws_client(), list_resource_telemetry_for_organization_input()) -> {ok, list_resource_telemetry_for_organization_output(), tuple()} | {error, any()} | {error, list_resource_telemetry_for_organization_errors(), tuple()}. list_resource_telemetry_for_organization(Client, Input) -> list_resource_telemetry_for_organization(Client, Input, []). -spec list_resource_telemetry_for_organization(aws_client:aws_client(), list_resource_telemetry_for_organization_input(), proplists:proplist()) -> {ok, list_resource_telemetry_for_organization_output(), tuple()} | {error, any()} | {error, list_resource_telemetry_for_organization_errors(), tuple()}. list_resource_telemetry_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/ListResourceTelemetryForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all S3 Table integrations in your account. %% %% We recommend using pagination to ensure that the operation returns quickly %% and successfully. -spec list_s3_table_integrations(aws_client:aws_client(), list_s3_table_integrations_input()) -> {ok, list_s3_table_integrations_output(), tuple()} | {error, any()} | {error, list_s3_table_integrations_errors(), tuple()}. list_s3_table_integrations(Client, Input) -> list_s3_table_integrations(Client, Input, []). -spec list_s3_table_integrations(aws_client:aws_client(), list_s3_table_integrations_input(), proplists:proplist()) -> {ok, list_s3_table_integrations_output(), tuple()} | {error, any()} | {error, list_s3_table_integrations_errors(), tuple()}. list_s3_table_integrations(Client, Input0, Options0) -> Method = post, Path = ["/ListS3TableIntegrations"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all tags attached to the specified resource. %% %% Supports telemetry rule resources and telemetry pipeline resources. -spec list_tags_for_resource(aws_client:aws_client(), list_tags_for_resource_input()) -> {ok, list_tags_for_resource_output(), tuple()} | {error, any()} | {error, list_tags_for_resource_errors(), tuple()}. list_tags_for_resource(Client, Input) -> list_tags_for_resource(Client, Input, []). -spec list_tags_for_resource(aws_client:aws_client(), list_tags_for_resource_input(), proplists:proplist()) -> {ok, list_tags_for_resource_output(), tuple()} | {error, any()} | {error, list_tags_for_resource_errors(), tuple()}. list_tags_for_resource(Client, Input0, Options0) -> Method = post, Path = ["/ListTagsForResource"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns a list of telemetry pipelines in your account. %% %% Returns up to 100 results. If more than 100 telemetry pipelines exist, %% include the `NextToken' value from the response to retrieve the next %% set of results. -spec list_telemetry_pipelines(aws_client:aws_client(), list_telemetry_pipelines_input()) -> {ok, list_telemetry_pipelines_output(), tuple()} | {error, any()} | {error, list_telemetry_pipelines_errors(), tuple()}. list_telemetry_pipelines(Client, Input) -> list_telemetry_pipelines(Client, Input, []). -spec list_telemetry_pipelines(aws_client:aws_client(), list_telemetry_pipelines_input(), proplists:proplist()) -> {ok, list_telemetry_pipelines_output(), tuple()} | {error, any()} | {error, list_telemetry_pipelines_errors(), tuple()}. list_telemetry_pipelines(Client, Input0, Options0) -> Method = post, Path = ["/ListTelemetryPipelines"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all telemetry rules in your account. %% %% You can filter the results by specifying a rule name prefix. -spec list_telemetry_rules(aws_client:aws_client(), list_telemetry_rules_input()) -> {ok, list_telemetry_rules_output(), tuple()} | {error, any()} | {error, list_telemetry_rules_errors(), tuple()}. list_telemetry_rules(Client, Input) -> list_telemetry_rules(Client, Input, []). -spec list_telemetry_rules(aws_client:aws_client(), list_telemetry_rules_input(), proplists:proplist()) -> {ok, list_telemetry_rules_output(), tuple()} | {error, any()} | {error, list_telemetry_rules_errors(), tuple()}. list_telemetry_rules(Client, Input0, Options0) -> Method = post, Path = ["/ListTelemetryRules"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all telemetry rules in your organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec list_telemetry_rules_for_organization(aws_client:aws_client(), list_telemetry_rules_for_organization_input()) -> {ok, list_telemetry_rules_for_organization_output(), tuple()} | {error, any()} | {error, list_telemetry_rules_for_organization_errors(), tuple()}. list_telemetry_rules_for_organization(Client, Input) -> list_telemetry_rules_for_organization(Client, Input, []). -spec list_telemetry_rules_for_organization(aws_client:aws_client(), list_telemetry_rules_for_organization_input(), proplists:proplist()) -> {ok, list_telemetry_rules_for_organization_output(), tuple()} | {error, any()} | {error, list_telemetry_rules_for_organization_errors(), tuple()}. list_telemetry_rules_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/ListTelemetryRulesForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Enables the resource tags for telemetry feature for your account, %% which enhances telemetry data with additional resource metadata from %% Resource Explorer to provide richer context for monitoring and %% observability. -spec start_telemetry_enrichment(aws_client:aws_client(), #{}) -> {ok, start_telemetry_enrichment_output(), tuple()} | {error, any()} | {error, start_telemetry_enrichment_errors(), tuple()}. start_telemetry_enrichment(Client, Input) -> start_telemetry_enrichment(Client, Input, []). -spec start_telemetry_enrichment(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, start_telemetry_enrichment_output(), tuple()} | {error, any()} | {error, start_telemetry_enrichment_errors(), tuple()}. start_telemetry_enrichment(Client, Input0, Options0) -> Method = post, Path = ["/StartTelemetryEnrichment"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc This action begins onboarding the caller Amazon Web Services account %% to the telemetry config feature. -spec start_telemetry_evaluation(aws_client:aws_client(), start_telemetry_evaluation_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, start_telemetry_evaluation_errors(), tuple()}. start_telemetry_evaluation(Client, Input) -> start_telemetry_evaluation(Client, Input, []). -spec start_telemetry_evaluation(aws_client:aws_client(), start_telemetry_evaluation_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, start_telemetry_evaluation_errors(), tuple()}. start_telemetry_evaluation(Client, Input0, Options0) -> Method = post, Path = ["/StartTelemetryEvaluation"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc This actions begins onboarding the organization and all member %% accounts to the telemetry config feature. -spec start_telemetry_evaluation_for_organization(aws_client:aws_client(), start_telemetry_evaluation_for_organization_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, start_telemetry_evaluation_for_organization_errors(), tuple()}. start_telemetry_evaluation_for_organization(Client, Input) -> start_telemetry_evaluation_for_organization(Client, Input, []). -spec start_telemetry_evaluation_for_organization(aws_client:aws_client(), start_telemetry_evaluation_for_organization_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, start_telemetry_evaluation_for_organization_errors(), tuple()}. start_telemetry_evaluation_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/StartTelemetryEvaluationForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Disables the resource tags for telemetry feature for your account, %% stopping the enhancement of telemetry data with additional resource %% metadata. -spec stop_telemetry_enrichment(aws_client:aws_client(), #{}) -> {ok, stop_telemetry_enrichment_output(), tuple()} | {error, any()} | {error, stop_telemetry_enrichment_errors(), tuple()}. stop_telemetry_enrichment(Client, Input) -> stop_telemetry_enrichment(Client, Input, []). -spec stop_telemetry_enrichment(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, stop_telemetry_enrichment_output(), tuple()} | {error, any()} | {error, stop_telemetry_enrichment_errors(), tuple()}. stop_telemetry_enrichment(Client, Input0, Options0) -> Method = post, Path = ["/StopTelemetryEnrichment"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc This action begins offboarding the caller Amazon Web Services account %% from the telemetry config feature. -spec stop_telemetry_evaluation(aws_client:aws_client(), #{}) -> {ok, undefined, tuple()} | {error, any()} | {error, stop_telemetry_evaluation_errors(), tuple()}. stop_telemetry_evaluation(Client, Input) -> stop_telemetry_evaluation(Client, Input, []). -spec stop_telemetry_evaluation(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, stop_telemetry_evaluation_errors(), tuple()}. stop_telemetry_evaluation(Client, Input0, Options0) -> Method = post, Path = ["/StopTelemetryEvaluation"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc This action offboards the Organization of the caller Amazon Web %% Services account from the telemetry config feature. -spec stop_telemetry_evaluation_for_organization(aws_client:aws_client(), #{}) -> {ok, undefined, tuple()} | {error, any()} | {error, stop_telemetry_evaluation_for_organization_errors(), tuple()}. stop_telemetry_evaluation_for_organization(Client, Input) -> stop_telemetry_evaluation_for_organization(Client, Input, []). -spec stop_telemetry_evaluation_for_organization(aws_client:aws_client(), #{}, proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, stop_telemetry_evaluation_for_organization_errors(), tuple()}. stop_telemetry_evaluation_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/StopTelemetryEvaluationForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Adds or updates tags for a resource. %% %% Supports telemetry rule resources and telemetry pipeline resources. -spec tag_resource(aws_client:aws_client(), tag_resource_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, tag_resource_errors(), tuple()}. tag_resource(Client, Input) -> tag_resource(Client, Input, []). -spec tag_resource(aws_client:aws_client(), tag_resource_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, tag_resource_errors(), tuple()}. tag_resource(Client, Input0, Options0) -> Method = post, Path = ["/TagResource"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Tests a pipeline configuration with sample records to validate data %% processing before deployment. %% %% This operation helps ensure your pipeline configuration works as expected. -spec test_telemetry_pipeline(aws_client:aws_client(), test_telemetry_pipeline_input()) -> {ok, test_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, test_telemetry_pipeline_errors(), tuple()}. test_telemetry_pipeline(Client, Input) -> test_telemetry_pipeline(Client, Input, []). -spec test_telemetry_pipeline(aws_client:aws_client(), test_telemetry_pipeline_input(), proplists:proplist()) -> {ok, test_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, test_telemetry_pipeline_errors(), tuple()}. test_telemetry_pipeline(Client, Input0, Options0) -> Method = post, Path = ["/TestTelemetryPipeline"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Removes tags from a resource. %% %% Supports telemetry rule resources and telemetry pipeline resources. -spec untag_resource(aws_client:aws_client(), untag_resource_input()) -> {ok, undefined, tuple()} | {error, any()} | {error, untag_resource_errors(), tuple()}. untag_resource(Client, Input) -> untag_resource(Client, Input, []). -spec untag_resource(aws_client:aws_client(), untag_resource_input(), proplists:proplist()) -> {ok, undefined, tuple()} | {error, any()} | {error, untag_resource_errors(), tuple()}. untag_resource(Client, Input0, Options0) -> Method = post, Path = ["/UntagResource"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing centralization rule that applies across an Amazon %% Web Services Organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec update_centralization_rule_for_organization(aws_client:aws_client(), update_centralization_rule_for_organization_input()) -> {ok, update_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, update_centralization_rule_for_organization_errors(), tuple()}. update_centralization_rule_for_organization(Client, Input) -> update_centralization_rule_for_organization(Client, Input, []). -spec update_centralization_rule_for_organization(aws_client:aws_client(), update_centralization_rule_for_organization_input(), proplists:proplist()) -> {ok, update_centralization_rule_for_organization_output(), tuple()} | {error, any()} | {error, update_centralization_rule_for_organization_errors(), tuple()}. update_centralization_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/UpdateCentralizationRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates the configuration of an existing telemetry pipeline. %% %% The following attributes cannot be updated after pipeline creation: %% %% Pipeline name - The pipeline name is immutable %% %% Pipeline ARN - The ARN is automatically generated and cannot be changed %% %% Source type - Once a pipeline is created with a specific source type (such %% as S3, CloudWatch Logs, GitHub, or third-party sources), it cannot be %% changed to a different source type %% %% Processors can be added, removed, or modified. However, some processors %% are not supported for third-party pipelines and cannot be added through %% updates. %% %% Source-Specific Update Rules %% %% CloudWatch Logs Sources (Vended and Custom) Updatable: `sts_role_arn' %% %% Fixed: `data_source_name', `data_source_type', sink (must remain %% `@original') %% %% S3 Sources (Crowdstrike, Zscaler, SentinelOne, Custom) Updatable: All SQS %% configuration parameters, `sts_role_arn', codec settings, compression %% type, bucket ownership settings, sink log group %% %% Fixed: `notification_type', `aws.region' %% %% GitHub Audit Logs Updatable: All Amazon Web Services Secrets Manager %% attributes, `scope' (can switch between ORGANIZATION/ENTERPRISE), %% `organization' or `enterprise' name, `range', authentication %% credentials (PAT or GitHub App) %% %% Microsoft Sources (Entra ID, Office365, Windows) Updatable: All Amazon Web %% Services Secrets Manager attributes, `tenant_id', `workspace_id' %% (Windows only), OAuth2 credentials (`client_id', `client_secret') %% %% Okta Sources (SSO, Auth0) Updatable: All Amazon Web Services Secrets %% Manager attributes, `domain', `range', OAuth2 credentials %% (`client_id', `client_secret') %% %% Palo Alto Networks Updatable: All Amazon Web Services Secrets Manager %% attributes, `hostname', basic authentication credentials %% (`username', `password') %% %% ServiceNow CMDB Updatable: All Amazon Web Services Secrets Manager %% attributes, `instance_url', `range', OAuth2 credentials %% (`client_id', `client_secret') %% %% Wiz CNAPP Updatable: All Amazon Web Services Secrets Manager attributes, %% `region', `range', OAuth2 credentials (`client_id', %% `client_secret') -spec update_telemetry_pipeline(aws_client:aws_client(), update_telemetry_pipeline_input()) -> {ok, update_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, update_telemetry_pipeline_errors(), tuple()}. update_telemetry_pipeline(Client, Input) -> update_telemetry_pipeline(Client, Input, []). -spec update_telemetry_pipeline(aws_client:aws_client(), update_telemetry_pipeline_input(), proplists:proplist()) -> {ok, update_telemetry_pipeline_output(), tuple()} | {error, any()} | {error, update_telemetry_pipeline_errors(), tuple()}. update_telemetry_pipeline(Client, Input0, Options0) -> Method = post, Path = ["/UpdateTelemetryPipeline"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing telemetry rule in your account. %% %% If multiple users attempt to modify the same telemetry rule %% simultaneously, a ConflictException is returned to provide specific error %% information for concurrent modification scenarios. -spec update_telemetry_rule(aws_client:aws_client(), update_telemetry_rule_input()) -> {ok, update_telemetry_rule_output(), tuple()} | {error, any()} | {error, update_telemetry_rule_errors(), tuple()}. update_telemetry_rule(Client, Input) -> update_telemetry_rule(Client, Input, []). -spec update_telemetry_rule(aws_client:aws_client(), update_telemetry_rule_input(), proplists:proplist()) -> {ok, update_telemetry_rule_output(), tuple()} | {error, any()} | {error, update_telemetry_rule_errors(), tuple()}. update_telemetry_rule(Client, Input0, Options0) -> Method = post, Path = ["/UpdateTelemetryRule"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing telemetry rule that applies across an Amazon Web %% Services Organization. %% %% This operation can only be called by the organization's management %% account or a delegated administrator account. -spec update_telemetry_rule_for_organization(aws_client:aws_client(), update_telemetry_rule_for_organization_input()) -> {ok, update_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, update_telemetry_rule_for_organization_errors(), tuple()}. update_telemetry_rule_for_organization(Client, Input) -> update_telemetry_rule_for_organization(Client, Input, []). -spec update_telemetry_rule_for_organization(aws_client:aws_client(), update_telemetry_rule_for_organization_input(), proplists:proplist()) -> {ok, update_telemetry_rule_for_organization_output(), tuple()} | {error, any()} | {error, update_telemetry_rule_for_organization_errors(), tuple()}. update_telemetry_rule_for_organization(Client, Input0, Options0) -> Method = post, Path = ["/UpdateTelemetryRuleForOrganization"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Validates a pipeline configuration without creating the pipeline. %% %% This operation checks the configuration for syntax errors and %% compatibility issues. -spec validate_telemetry_pipeline_configuration(aws_client:aws_client(), validate_telemetry_pipeline_configuration_input()) -> {ok, validate_telemetry_pipeline_configuration_output(), tuple()} | {error, any()} | {error, validate_telemetry_pipeline_configuration_errors(), tuple()}. validate_telemetry_pipeline_configuration(Client, Input) -> validate_telemetry_pipeline_configuration(Client, Input, []). -spec validate_telemetry_pipeline_configuration(aws_client:aws_client(), validate_telemetry_pipeline_configuration_input(), proplists:proplist()) -> {ok, validate_telemetry_pipeline_configuration_output(), tuple()} | {error, any()} | {error, validate_telemetry_pipeline_configuration_errors(), tuple()}. validate_telemetry_pipeline_configuration(Client, Input0, Options0) -> Method = post, Path = ["/ValidateTelemetryPipelineConfiguration"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %%==================================================================== %% Internal functions %%==================================================================== -spec proplists_take(any(), proplists:proplist(), any()) -> {any(), proplists:proplist()}. proplists_take(Key, Proplist, Default) -> Value = proplists:get_value(Key, Proplist, Default), {Value, proplists:delete(Key, Proplist)}. -spec request(aws_client:aws_client(), atom(), iolist(), list(), list(), map() | undefined, list(), pos_integer() | undefined) -> {ok, {integer(), list()}} | {ok, Result, {integer(), list(), hackney:client()}} | {error, Error, {integer(), list(), hackney:client()}} | {error, term()} when Result :: map(), Error :: map(). request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) -> RequestFun = fun() -> do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) end, aws_request:request(RequestFun, Options). do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) -> Client1 = Client#{service => <<"observabilityadmin">>}, DefaultHost = build_host(<<"observabilityadmin">>, Client1), URL0 = build_url(DefaultHost, Path, Client1), PathBin = erlang:iolist_to_binary(Path), {URL1, Host} = aws_util:apply_endpoint_url_override(URL0, DefaultHost, PathBin, <<"AWS_ENDPOINT_URL_OBSERVABILITYADMIN">>), URL = aws_request:add_query(URL1, Query), AdditionalHeaders1 = [ {<<"Host">>, Host} , {<<"Content-Type">>, <<"application/x-amz-json-1.1">>} ], Payload = case proplists:get_value(send_body_as_binary, Options) of true -> maps:get(<<"Body">>, Input, <<"">>); false -> encode_payload(Input) end, AdditionalHeaders = case proplists:get_value(append_sha256_content_hash, Options, false) of true -> add_checksum_hash_header(AdditionalHeaders1, Payload); false -> AdditionalHeaders1 end, Headers1 = aws_request:add_headers(AdditionalHeaders, Headers0), MethodBin = aws_request:method_to_binary(Method), SignedHeaders = aws_request:sign_request(Client1, MethodBin, URL, Headers1, Payload), Response = hackney:request(Method, URL, SignedHeaders, Payload, Options), DecodeBody = not proplists:get_value(receive_body_as_binary, Options), handle_response(Response, SuccessStatusCode, DecodeBody). add_checksum_hash_header(Headers, Body) -> [ {<<"X-Amz-CheckSum-SHA256">>, base64:encode(crypto:hash(sha256, Body))} | Headers ]. handle_response({ok, StatusCode, ResponseHeaders}, SuccessStatusCode, _DecodeBody) when StatusCode =:= 200; StatusCode =:= 202; StatusCode =:= 204; StatusCode =:= 206; StatusCode =:= SuccessStatusCode -> {ok, {StatusCode, ResponseHeaders}}; handle_response({ok, StatusCode, ResponseHeaders}, _, _DecodeBody) -> {error, {StatusCode, ResponseHeaders}}; handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, DecodeBody) when StatusCode =:= 200; StatusCode =:= 202; StatusCode =:= 204; StatusCode =:= 206; StatusCode =:= SuccessStatusCode -> case hackney:body(Client) of {ok, <<>>} when StatusCode =:= 200; StatusCode =:= SuccessStatusCode -> {ok, #{}, {StatusCode, ResponseHeaders, Client}}; {ok, Body} -> Result = case DecodeBody of true -> try jsx:decode(Body) catch Error:Reason:Stack -> erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack) end; false -> #{<<"Body">> => Body} end, {ok, Result, {StatusCode, ResponseHeaders, Client}} end; handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody) when StatusCode =:= 503 -> %% Retriable error if retries are enabled {error, service_unavailable}; handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) -> {ok, Body} = hackney:body(Client), try DecodedError = jsx:decode(Body), {error, DecodedError, {StatusCode, ResponseHeaders, Client}} catch Error:Reason:Stack -> erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack) end; handle_response({error, Reason}, _, _DecodeBody) -> {error, Reason}. build_host(_EndpointPrefix, #{region := <<"local">>, endpoint := Endpoint}) -> Endpoint; build_host(_EndpointPrefix, #{region := <<"local">>}) -> <<"localhost">>; build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) -> aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>). build_url(Host, Path0, Client) -> Proto = aws_client:proto(Client), Path = erlang:iolist_to_binary(Path0), Port = aws_client:port(Client), aws_util:binary_join([Proto, <<"://">>, Host, <<":">>, Port, Path], <<"">>). -spec encode_payload(undefined | map()) -> binary(). encode_payload(undefined) -> <<>>; encode_payload(Input) -> jsx:encode(Input).